PyInstaller 不会安装,Python 3.6.0a4 和 x64 Windows [英] PyInstaller won't install, Python 3.6.0a4 and x64 Windows
问题描述
我说过 Python 版本(来自 https://www.python.org/downloads/windows/) 和 x64 Windows 10.每次我尝试执行pip install pyinstaller"时,它都会因错误而崩溃:
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:WINDOWSsystem32>pip install pyinstaller
Collecting pyinstaller
Using cached PyInstaller-3.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): setuptools in c:usersjskurskiappdatalocalprogramspythonpython36libsite-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:UsersjskurskiAppDataLocalTemppip-build-y9lsbd5fpypiwin32setup.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:UsersjskurskiAppDataLocalTemppip-build-y9lsbd5fpypiwin32
所以,对我来说似乎有一个版本 msmatch 之类的.不幸的是,我自己无法弄清楚.
So, for me it seems there is a version msmatch or something. Unofortunately, I can not figure it out myself.
有什么建议吗?有没有人在 Windows 上成功使用 PyInstaller 和最新的 3.6 Python?或者我应该将 Python 降级到旧版本?
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:似乎适用于 3.5.2 版本,所以现在可能是一种方法.
edit2: seems to work on 3.5.2 version, so it's probably a way to go, for now.
推荐答案
案例已关闭,因为我降级到稳定版 3.5.2.可能在该 alpha 版本中存在一些不一致,导致了这种情况.我只是想写一个简单的 GUI Windows 程序,所以我不会进一步研究.
Case is closed for me, as I downgraded to stable 3.5.2. Probably some inconsistency in that alpha release, which caused this. I just wanted to write a simple GUI Windows program, so I will not investigate further.
这篇关于PyInstaller 不会安装,Python 3.6.0a4 和 x64 Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!