0
0 Комментариев

При комманде pip install pyinstaller выходит данная ошибка:

[apcode language=»python»]

C:\Python2>pip install pyinstaller
Collecting pyinstaller
  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 ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\администратор\appdata\local\programs\python\python38-32\python.exe' 'c:\users\администратор\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\TEMP\tmp_t4qi57d'
         cwd: C:\TEMP\pip-install-w5zz1df6\pyinstaller
    Complete output (36 lines):
    running dist_info
    creating C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info
    writing C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info\PKG-INFO
    writing dependency_links to C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info\dependency_links.txt
    writing entry points to C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info\entry_points.txt
    writing requirements to C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info\requires.txt
    writing top-level names to C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info\top_level.txt
    writing manifest file 'C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info\SOURCES.txt'
    reading manifest file 'C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    Error in sitecustomize; set PYTHONVERBOSE for traceback:
    SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe0 in position 0: invalid continuation byte (sitecustomize.py, line 7)
    no previously-included directories found matching 'bootloader\build'
    no previously-included directories found matching 'bootloader\.waf-*'
    no previously-included directories found matching 'bootloader\.waf3-*'
    no previously-included directories found matching 'bootloader\waf-*'
    no previously-included directories found matching 'bootloader\waf3-*'
    no previously-included directories found matching 'bootloader\_sdks'
    no previously-included directories found matching 'bootloader\.vagrant'
    warning: no previously-included files found matching 'bootloader\.lock-waf*'
    no previously-included directories found matching 'doc\source'
    no previously-included directories found matching 'doc\_build'
    warning: no previously-included files matching '*.tmp' found under directory 'doc'
    warning: no files found matching 'news\_template.rst'
    no previously-included directories found matching 'news'
    no previously-included directories found matching 'old'
    no previously-included directories found matching 'scripts'
    no previously-included directories found matching 'tests\scripts'
    no previously-included directories found matching '.github'
    warning: no previously-included files found matching '.*'
    warning: no previously-included files found matching '*.yml'
    warning: no previously-included files found matching '*~'
    warning: no previously-included files found matching '.directory'
    writing manifest file 'C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.egg-info\SOURCES.txt'
    creating 'C:\TEMP\pip-modern-metadata-e3idkqg4\PyInstaller.dist-info'
    error: invalid command 'bdist_wheel'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\администратор\appdata\local\programs\python\python38-32\python.exe' 'c:\users\администратор\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\TEMP\tmp_t4qi57d' Check the logs for full command output.

[/apcode]

Версия пайтона 3.8.0

Пробовал и изменить переменную Path, и TEMP. Не помогает. При комманде pip все работает, выходит это:

[apcode language=»python»]

C:\Python2>pip
 Usage:
  pip <command> [options]
 Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  debug                       Show information useful for debugging.
  help                        Show help for commands.
 General Options:
  -h, --help                  Show help.
  --isolated                  Run pip in an isolated mode, ignoring
                              environment variables and user configuration.
  -v, --verbose               Give more output. Option is additive, and can be
                              used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output. Option is additive, and can be
                              used up to 3 times (corresponding to WARNING,
                              ERROR, and CRITICAL logging levels).
  --log <path>                Path to a verbose appending log.
  --proxy <proxy>             Specify a proxy in the form
                              [user:passwd@]proxy.server:port.
  --retries <retries>         Maximum number of retries each connection should
                              attempt (default 5 times).
  --timeout <sec>             Set the socket timeout (default 15 seconds).
  --exists-action <action>    Default action when a path already exists:
                              (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
  --trusted-host <hostname>   Mark this host or host:port pair as trusted,
                              even though it does not have valid or any HTTPS.
  --cert <path>               Path to alternate CA bundle.
  --client-cert <path>        Path to SSL client certificate, a single file
                              containing the private key and the certificate
                              in PEM format.
  --cache-dir <dir>           Store the cache data in <dir>.
  --no-cache-dir              Disable the cache.
  --disable-pip-version-check
                              Don't periodically check PyPI to determine
                              whether a new version of pip is available for
                              download. Implied with --no-index.
  --no-color                  Suppress colored output

[/apcode]

Что же мне делать?


Добавить комментарий