1. ホーム
  2. python

python pip command install pyinstaller failed prompting Installing build dependencies ... error.

2022-02-21 02:53:32

1. 現象です。

2.解決策、自分でダウンロードし、手動でインストールする

2.1 ダウンロードアドレス https://pypi.org/project/PyInstaller/3.5/#files

2.2 Unpack to E:\pythonInstaller-3.5

2.3 解凍したディレクトリ E:\pythonInstaller-3.5 に cmd を実行します。

2.4 手動でインストール E:\python Independent-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:\user directory\my-documentation\' 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:\user directory\my documents\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.
 for full command output.

E:\python>


<イグ