2017-10-13 4 views
3

nicht ausführen Ich versuche, es zu installieren und auszuführen, aber ich tue dies und es funktioniert nicht.Wenn ich versuche, pyinstaller zu installieren, kann ich den Befehl

C:\Users\Dino Non Admin>py -m pip install pyinstaller 
Collecting pyinstaller 
    Using cached PyInstaller-3.3.tar.gz 
Requirement already satisfied: setuptools in c:\users\dino non admin\appdata\local\programs\python\python35\lib\site-packages (from pyinstaller) 
Requirement already satisfied: pefile>=2017.8.1 in c:\users\dino non admin\appdata\local\programs\python\python35\lib\site-packages (from pyinstaller) 
Requirement already satisfied: macholib>=1.8 in c:\users\dino non admin\appdata\local\programs\python\python35\lib\site-packages (from pyinstaller) 
Requirement already satisfied: future in c:\users\dino non admin\appdata\local\programs\python\python35\lib\site-packages (from pyinstaller) 
Requirement already satisfied: pypiwin32 in c:\users\dino non admin\appdata\local\programs\python\python35\lib\site-packages (from pyinstaller) 
Requirement already satisfied: altgraph>=0.13 in c:\users\dino non admin\appdata\local\programs\python\python35\lib\site-packages (from macholib>=1.8->pyinstaller) 
Installing collected packages: pyinstaller 
    Running setup.py install for pyinstaller ... done 
Successfully installed pyinstaller-3.3 

C:\Users\Dino Non Admin>pyinstaller 
'pyinstaller' is not recognized as an internal or external command, 
operable program or batch file. 

Auch für diese Dateien:

pyinstaller.exe 
pyinstaller-script.py 

Als ich sie öffnen sie tut dies:

Pyinstaller cannot check for assembly dependencies. 
Please install PyWin32 or PyWin32-ctypes 

und ich versuche zu tun, was er sagt, aber

C:\Users\Dino Non Admin>py -m pip install pypiwin32 
Requirement already satisfied: pypiwin32 in c:\users\dino non admin\appdata\local\programs\python\python35\lib\site-packages 
+0

ist Python in Ihrem lokalen Pfad hinzugefügt? –

Antwort

0

PyInstaller ist eine Anwendung, kein Paket. Sie können es verwenden, ohne es auf Ihrem PC zu installieren. Einfach herunterladen und extrahieren.

cd pyinstaller 

Das Paket, das Sie wollen, ist newscript.py. Ich habe es im Pyinstaller-Ordner gespeichert. Um nun die ausführbare Datei aus diesem Skript zu erstellen, führen

`python pyinstaller.py newscript.py` 

es wird das Skript verarbeiten und ein Ordner namens newscript erstellt. Der Build-Ordner wird von Pyinstaller als temporärer Container verwendet, der die erforderlichen Pakete und Dateien enthält. Der Ordner "dist" enthält die ausführbare Datei.

0

Versuchen Sie pip install pywin32-ctypes.

Verwandte Themen