PyInstaller nie może znaleźć libpython2.7.so podczas tworzenia pliku binarnego?
Próbuję stworzyć wersję binarną skryptu Pythona przy użyciu PyInstaller 2.0 w systemie Linux. Kiedy biegam:
$ python pyinstaller.py myscript.py
Dostaję błąd:
8907 INFO: Looking for Python library libpython2.7.so
Traceback (most recent call last):
...
File "pyinstaller.py", line 91, in <module>
raise IOError("Python library not found!")
IOError: Python library not found!
Jak to może zostać naprawione?
Ja używam:
Linux # 98-Ubuntu x86_64 GNU / Linux
Z pythonem 2.7. W systemie są inne Pythony, ale ustawiłem to tak:
alias python="python2.7"
Na serwerze, którego używam, jest tylko/usr/lib/python2.6
i nie/usr/lib/python2.7
ale python 2.7 jest używany rutynowo przeze mnie i jest funkcjonalny itd., więc nie widzę powodu, dla którego znalezienie jego bibliotek byłoby problemem. Tam jest/usr/local/lib/libpython2.7.a
.