繁体   English   中英

我无法安装 PyInstaller,正在准备轮元数据...错误

[英]I can't install PyInstaller , Preparing wheel metadata ... error

我正在使用 Python 3.9.1(12/31/2020,从微软商店下载),我想将我的一个项目变成可执行文件,但每次我尝试pip install pyinstaller时,它都会说这个(我已经削减了一些一开始的代码因为除了它没有错误之外,stackoverflow 说我的帖子主要是代码):

  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
 command: 'C:\Users\Γιώργος Βέβας\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\37A0~1\AppData\Local\Temp\tmpwurr1dm8'
     cwd: C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-req-build-gbhcr_je
Complete output (34 lines):
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte (sitecustomize.py, line 21)
running dist_info
creating C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info
writing C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info\PKG-INFO
writing dependency_links to C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info\dependency_links.txt
writing entry points to C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info\entry_points.txt
writing requirements to C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info\requires.txt
writing top-level names to C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info\top_level.txt
writing manifest file 'C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'pyinstaller-gui.py'
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'
no previously-included directories found matching 'old'
no previously-included directories found matching '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:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.egg-info\SOURCES.txt'
creating 'C:\Users\Γιώργος Βέβας\AppData\Local\Temp\pip-modern-metadata-61iwlidj\pyinstaller.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Γιώργος Βέβας\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\37A0~1\AppData\Local\Temp\tmpwurr1dm8' Check the logs for full command output.

当我 pip 安装轮子时,它说:

     Requirement already satisfied: wheel in c:\users\γιώργος 
βέβας\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local- 
packages\python39\site-packages (0.36.2)

另外,当我升级 pip 时,出现了:

 WARNING: The scripts pip.exe, pip3.9.exe and pip3.exe are installed in 'C:\Users\Γιώργος Βέβας\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH.

考虑将此目录添加到 PATH,或者,如果您希望禁止显示此警告,请使用 --no-warn-script-location。

尝试使用另一个版本的 Python。我在使用 3.9.0 时遇到了同样的错误,但是当我开始使用 3.8.5 时效果很好。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM