-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyinstaller.txt
46 lines (29 loc) · 1.74 KB
/
pyinstaller.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
If you're receiving the message "pyinstaller: The term 'pyinstaller' is not recognized...", it indicates that PyInstaller might not be installed properly or its installation directory is not added to the system's PATH variable.
To troubleshoot this:
Confirm PyInstaller Installation:
Open a command prompt and check if PyInstaller is installed:
cmd
Copy code
pip show pyinstaller
If PyInstaller is installed, it will display information about the package, including its version and installation path. If it's not installed, you'll see an error indicating that the package is not found.
Check Python Scripts Location:
If PyInstaller was installed but the command is not recognized, it might be due to Python's scripts location not being added to the PATH variable. Check the location where Python scripts are installed by running:
cmd
Copy code
pip show -f pyinstaller | findstr "Location"
This command will show the location where PyInstaller is installed. Make sure this path is added to the system's PATH environment variable.
Reinstall PyInstaller:
If PyInstaller is not installed or there are issues with the installation, you can reinstall it:
cmd
Copy code
pip install pyinstaller
Reinstalling might resolve any installation-related issues.
Manually Locate PyInstaller:
If you can't find PyInstaller via the command line, try manually searching for the PyInstaller executable on your system. It might be located in the Python Scripts directory.
After ensuring PyInstaller is installed and its location is in the PATH variable, reopen the command prompt and try running pyinstaller again.
Issues:
1. Pyinstaller exe won't work outside the dist folder
2. pyinstaller exe closes immediately and no output.
Solution:
use --onefile
pyinstaller --onefile script.py