PyInstaller不会安装,Python 3.6.0a4和x64 Windows

时间:2016-09-04 08:52:12

标签: python windows 64-bit pyinstaller

我说过Python版本(来自https://www.python.org/downloads/windows/)和x64 Windows 10。 每次我尝试执行" pip install pyinstaller"它崩溃了一个错误:

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\

所以,对我来说似乎有一个版本msmatch或其他东西。不幸的是,我无法弄清楚自己。

有什么建议吗? 有没有人在Windows上成功使用PyInstaller和最新的3.6 Python?或者也许我应该将Python降级到旧版本?

编辑:在另一台PC(同一环境)上测试,它是相同的。

edit2:似乎适用于3.5.2版本,所以它现在可能是一种方法。

4 个答案:

答案 0 :(得分:2)

pyinstaller需要pypiwin32模块。 当pip尝试安装它时,它显示错误,因为python3.6没有pypiwin32

答案 1 :(得分:1)

案件对我来说是关闭的,因为我降级到稳定的3.5.2。可能是alpha版本中的一些不一致,导致了这一点。我只是想编写一个简单的GUI Windows程序,所以我不会进一步调查。

答案 2 :(得分:1)

你必须根据你的python版本手动安装pywin32。您可以下载以下链接。

https://sourceforge.net/projects/pywin32/files/pywin32/Build%20221/

使用正确版本的python安装pywin32。必须安装Pyinstaller

答案 3 :(得分:0)

正如cdarke指出的那样,你在Python 3上运行python 2代码。

请改为尝试:

blks[i>>2] |= 0x80 << ((i%4) * 8)
相关问题