(I'm on Windows.)
I want to use PyInstaller. I could always create bin files with pyinstaller.py [args]
.
__init__.py
file,setup.py
pyinstaller\[files]
in that folder and then make a call to python pyinstaller\pyinstaller.py
.pyinstaller.org only tells me something with Configure.py
.
So now I'm out of ideas how to install PyInstaller so that I don't have to work with absolute paths. Do you have any ideas?
To install PyInstaller: Go to your command prompt (Start -> Run -> cmd) type the following command cd c:\python27\scripts press enter, this should be where your pip.exe file is located. Once you are in this directory type pip install pyinstaller press enter.
After installation, the pyinstaller binary is located in your virtual environment's bin/ directory, or where your Python executable is located. If that directory isn't in your PATH , include the whole path when you run pyinstaller .
There are five alternatives to PyInstaller for Windows, Linux and Mac. The best alternative is nuitka, which is both free and Open Source. Other great apps like PyInstaller are py2exe, cx_Freeze, Shed Skin and bbfreeze.
To install PyInstaller:
cd c:\python27\scripts
press enter,
this should be where your pip.exe file is located.pip install pyinstaller
press enterMessage should read Successfully installed pyinstaller
.
To install pyInstaller you must first run python Configure.py
in the pyInstaller directory. To create an exe you must copy the script to the pyInstaller directory, and run python Makespec.py script.py
after you have run that run python Build.py script/script.spec
(these commands assume you have the python directory in your path, the command prompt is in the pyInstaller directory and that your script is called script.py
.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With