python pip命令安裝 pyinstaller失敗提示Installing build dependencies ... error

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>

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章