如何解决当我尝试安装 pyinstaller 时,如何修复控制台中的错误退出 1 状态?
我在使用 Python 时遇到问题。我已经尝试在控制台中安装“pyinstaller” 2 天了。不幸的是,我总是得到错误退出 1 状态。我已经将我的版本从 3.9 更改为 3.8,然后更改为 3.7。不幸的是,这没有帮助。我还尝试安装另一个模块。同样,这没有帮助。这是我从控制台得到的(我用“user.example”替换了我的真实姓名):
C:\Users\user.example>pip install pyinstaller
Collecting pyinstaller
Using cached pyinstaller-4.1.tar.gz (3.5 MB)
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\user.example\appdata\local\programs\python\python37\python.exe' 'c:\users\user.example\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_Metadata_for_build_wheel 'C:\Users\USER.EXAMPLE\AppData\Local\Temp\tmp_ccgduda'
cwd: C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-install-rxa3pb6o\pyinstaller_a5809cbec58c4c85bcccefa73b853d2b
Complete output (38 lines):
running dist_info
creating C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.egg-info
writing C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.egg-info\PKG-INFO
writing dependency_links to C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.egg-info\dependency_links.txt
writing entry points to C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.egg-info\entry_points.txt
writing requirements to C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.egg-info\requires.txt
writing top-level names to C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.egg-info\top_level.txt
writing manifest file 'C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\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 0xf6 in position 0: invalid start byte (sitecustomize.py,line 7)
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'
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'
warning: no prevIoUsly-included files matching '*.py[co]' found anywhere in distribution
writing manifest file 'C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.egg-info\SOURCES.txt'
creating 'C:\Users\USER.EXAMPLE\AppData\Local\Temp\pip-modern-Metadata-ro_gztrg\pyinstaller.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\user.example\appdata\local\programs\python\python37\python.exe' 'c:\users\user.example\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_Metadata_for_build_wheel 'C:\U
sers\USER.EXAMPLE\AppData\Local\Temp\tmp_ccgduda' 检查日志以获取完整的命令输出。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。