gpt4 book ai didi

python - 在 python 3.4.3 上安装 pyinstaller

转载 作者:行者123 更新时间:2023-12-05 05:57:22 27 4
gpt4 key购买 nike

我正在尝试在 python 3.4.3 中安装 pyinstaller 3.5 但出现此错误:

ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\DTI~1.DES\AppData\Local\Temp\pip-install-_dyh3r_g\pefile\

我使用的命令是这样的:

pip install pyinstaller==3.5

我正在使用 3.4.3 可以使用 pip、setuptools 和 wheel 的最新版本。

pip 19.1.1  
setuptools 43.0.0
wheel 0.33.6

感谢所有帮助。

这是完整的日志:

pip install pyinstaller=="3.5"

DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Collecting pyinstaller==3.5
Using cached https://files.pythonhosted.org/packages/e2/c9/0b44b2ea87ba36395483a672fddd07e6a9cb2b8d3c4a28d7ae76c7e7e1e5/PyInstaller-3.5.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting pywin32-ctypes>=0.2.0 (from pyinstaller==3.5)
Using cached https://files.pythonhosted.org/packages/9e/4b/3ab2720f1fa4b4bc924ef1932b842edf10007e4547ea8157b0b9fc78599a/pywin32_ctypes-0.2.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\python34\lib\site-packages (from pyinstaller==3.5) (43.0.0)
Collecting altgraph (from pyinstaller==3.5)
Using cached https://files.pythonhosted.org/packages/ee/3d/bfca21174b162f6ce674953f1b7a640c1498357fa6184776029557c25399/altgraph-0.17-py2.py3-none-any.whl
Collecting pefile>=2017.8.1 (from pyinstaller==3.5)
Using cached https://files.pythonhosted.org/packages/f9/1e/fc4fac0169d16a98577809400bbcfac8ad1900fa792184327b360ea51fc6/pefile-2021.5.13.tar.gz
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\DTI~1.DES\AppData\Local\Temp\pip-install-3rgqa38b\pefile\setup.py", line 86, in <module>
long_description = "\n".join(_read_doc().split('\n')),
File "C:\Users\DTI~1.DES\AppData\Local\Temp\pip-install-3rgqa38b\pefile\setup.py", line 33, in _read_doc
tree = ast.parse(f.read())
File "c:\python34\lib\ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 3789
f'Export directory contains more than 10 repeated entries '
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\DTI~1.DES\AppData\Local\Temp\pip-install-3rgqa38b\pefile\

最佳答案

pefile(PyInstaller 依赖项之一)requires python >= 3.6.0

关于python - 在 python 3.4.3 上安装 pyinstaller,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68821867/

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