Pyinstaller don't work #139823
Replies: 6 comments
-
It seems PowerShell isn't recognizing the pyinstaller command because the installation path isn't in your system's PATH environment variable. First, ensure PyInstaller is installed by running pip show pyinstaller in the command prompt. Then, locate the Scripts folder where it's installed (typically under your Python user site-packages directory). Add this folder to your PATH environment variable by following the steps in System Properties > Environment Variables. After updating PATH, restart PowerShell and try running pyinstaller --version again. This should resolve the issue. |
Beta Was this translation helpful? Give feedback.
-
Hello have you been able to solve the problem? |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Beta Was this translation helpful? Give feedback.
-
Response #1 |
Beta Was this translation helpful? Give feedback.
-
First, check if the Python and PyInstaller paths are added to the system environment variables. Second, try running the PyInstaller commands in the command prompt instead of PowerShell. If these don't work, consider creating and using a virtual environment to install and run PyInstaller. |
Beta Was this translation helpful? Give feedback.
-
Body
Hi, I'm building a python app with tkinter and now I want to make it an .exe file.
I have installed pyinstaller
pip install pyinstaller
I used the upgrade function
pip install --upgrade pyinstaller
But when I try to run a pyinstaller command like
pyinstaller --version
or try to turn the py file into an .exe filepyinstaller <filename.py> --onefile
Powershell responds with a cmdlet error.
Error (translated from German to English, I'm not sure if this is the correct error text)
I reinstalled pyinstaller, but it still did not work. Hope someone can help me.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions