gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 13:26:32 24 4
gpt4 key购买 nike

我说的是 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 版本上工作,所以目前它可能是一个可行的方法。

最佳答案

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

关于python - PyInstaller 不会安装,Python 3.6.0a4 和 x64 Windows,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39315160/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com