1. 现象:
2. 解决方案,自己下载,手动安装
2.1 下载地址:https://pypi.org/project/PyInstaller/3.5/#files
2.2 解压到E:\python\PyInstaller-3.5
2.3 cmd进入到解压后的目录 E:\python\PyInstaller-3.5>
2.4 手动安装 E:\python\PyInstaller-3.5>python setup.py install
E:\python>pip install pyinstaller
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/e2/c9/0b44b2ea87ba36395483a672fddd07e6a9cb2b8d3c4a28d7ae76c7e7e1e5/PyInstaller-3.5.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'd:\python36\python.exe' 'd:\python36\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'D:\用户目录\我的文档\MobaXterm\slash\var\log\xwin\pip-build-env-bdn
0src2\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
cwd: None
Complete output (14 lines):
Traceback (most recent call last):
File "d:\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "d:\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "d:\python36\lib\site-packages\pip\__main__.py", line 16, in <module>
from pip._internal import main as _main # isort:skip # noqa
File "d:\python36\lib\site-packages\pip\_internal\__init__.py", line 4, in <module>
import locale
File "d:\python36\lib\locale.py", line 16, in <module>
import re
File "d:\python36\lib\re.py", line 142, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\python36\python.exe' 'd:\python36\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'D:\用户目录\我的文档\MobaXterm\s
lash\var\log\xwin\pip-build-env-bdn0src2\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs
for full command output.
E:\python>