Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install PyInstaller? [closed]

Tags:

(I'm on Windows.)

I want to use PyInstaller. I could always create bin files with pyinstaller.py [args].

  • It's not a package with an __init__.py file,
  • it has no setup.py
  • and it doesn't work to create a folder, put it in my PYTHONPATH, put 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?

like image 788
rynd Avatar asked May 26 '12 14:05

rynd


People also ask

How do I manually install PyInstaller?

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.

Where does PyInstaller get installed?

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 .

Is there an alternative to 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.


2 Answers

To install PyInstaller:

  1. Go to your command prompt (Start -> Run -> cmd)
  2. type the following command cd c:\python27\scripts press enter, this should be where your pip.exe file is located.
  3. Once you are in this directory type pip install pyinstaller press enter

Message should read Successfully installed pyinstaller.

like image 119
Developer Avatar answered Sep 17 '22 19:09

Developer


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.)

like image 38
Python Kid Avatar answered Sep 19 '22 19:09

Python Kid