Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyInstaller won't install, Python 3.6.0a4 and x64 Windows

I have said Python version (from https://www.python.org/downloads/windows/), and x64 Windows 10. Every time I try to execute "pip install pyinstaller" it crashes with an error:

C:\WINDOWS\system32>pip install pyinstaller
Collecting pyinstaller
  Using cached PyInstaller-3.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\users\jskurski\appdata\local\programs\python\python36\lib\site-packages (from pyinstaller)
Collecting pefile (from pyinstaller)
  Using cached pefile-2016.3.28.tar.gz
Collecting pypiwin32 (from pyinstaller)
  Using cached pypiwin32-219.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\jskurski\AppData\Local\Temp\pip-build-y9lsbd5f\pypiwin32\setup.py", line 121
        print "Building pywin32", pywin32_version
                               ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\jskurski\AppData\Local\Temp\pip-build-y9lsbd5f\pypiwin32\

So, for me it seems there is a version msmatch or something. Unofortunately, I can not figure it out myself.

Any suggestions? Has anybody sucessfully used PyInstaller with latest 3.6 Python on Windows? Or maybe I should downgrade Python to older version?

edit: tested on another PC (same enviroment) and it was the same.

edit2: seems to work on 3.5.2 version, so it's probably a way to go, for now.

like image 635
JMKS Avatar asked Sep 04 '16 08:09

JMKS


People also ask

How do I install pyinstaller on Windows 10?

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.


1 Answers

pyinstaller needs pypiwin32 module. when pip tries to install it, it shows an error because there is no pypiwin32 for python3.6

like image 121
alirezasamimi100 Avatar answered Sep 22 '22 01:09

alirezasamimi100