ich Python bin mit 3.6.0kann nicht pyinstaller installieren pip mit
python --version
Python 3.6.0
I pyinstaller mit Pip in einem benutzerdefinierten Ordner
pip install pyinstaller --target=/prj/qc-tools/lib/pyinstaller
Collecting pyinstaller
Collecting setuptools (from pyinstaller)
Using cached setuptools-36.3.0-py2.py3-none-any.whl
Installing collected packages: setuptools, pyinstaller
Successfully installed pyinstaller-3.2.1 setuptools-36.3.0
Der Ordner ein pyinstaller.py
muss nicht installieren versuchen drin.
ls
easy_install.py pkg_resources __pycache__ PyInstaller PyInstaller-3.2.1.dist-info setuptools setuptools-36.3.0.dist-info
Die Dokumentation auf pyinstaller.org sagt nichts mehr. Was mache ich?
warum denkst du sollte es von 'pyinstaller.py' an erster Stelle? Versuchen Sie 'PyInstaller' von der Python-Konsole zu importieren, funktioniert das? – 9dogs
Der Grund, warum pyinstaller.py existieren sollte, ist, weil pyinstaller.org das sagt - Das Äquivalent des pyinstaller-Befehls ist pyinstaller-folder/pyinstaller.py. Ja, ich kann PyInstaller von der Konsole aus importieren, aber wie gehe ich vor, es so zu benutzen? Wie konvertiere ich ein Python-Skript in eine eigenständige ausführbare Datei? – shikhanshu
Es scheint, dass die Verwendung von '--target' verhindert, dass pip Eingabeskripts erstellt. Weitere Informationen finden Sie [diese Antwort] (https://stackoverflow.com/a/29103053/5827010). Wie auch immer, ein [Inhalt von 'pyinstaller.py' ist trivial] (https://github.com/pyinstaller/pyinstaller/blob/develop/pyinstaller.py) – 9dogs