PyInstaller Установка зависимостей сборки ... ошибка - PullRequest
0 голосов
/ 22 апреля 2020

Когда я пытался установить Pyinstaller, используя pip, возникает ошибка ниже.

C:\Users\HP\Desktop>python -m pip install PyInstaller-3.5.tar.gz --user
Processing c:\users\hp\desktop\pyinstaller-3.5.tar.gz
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\HP\AppData\Local\Programs\Python\Python37\python.exe' 'C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\HP\AppData\Local\Temp\pip-build-env-p6xqgx9y\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 "C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec)
    File "C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
      exec(code, run_globals)
    File "C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\site-packages\pip\__main__.py", line 16, in <module>
      from pip._internal.cli.main import main as _main  # isort:skip # noqa
    File "C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\site-packages\pip\_internal\cli\main.py", line 5, in <module>
      import locale
    File "C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\locale.py", line 16, in <module>
      import re
    File "C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\re.py", line 143, in <module>
      class RegexFlag(enum.IntFlag):
  AttributeError: module 'enum' has no attribute 'IntFlag'
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\HP\AppData\Local\Programs\Python\Python37\python.exe' 'C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\HP\AppData\Local\Temp\pip-build-env-p6xqgx9y\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.
...