繁体   English   中英

当我尝试执行 pip 安装时出现错误

[英]I get and error when I try to do pip install

每次我尝试使用 pip 安装命令安装某些东西时,都会跳出一大堆错误,我遇到这个问题已经有一段时间了,我已经尝试搜索解决方案但它们没有用。 现在我在这里寻求帮助:)

这是我执行命令时显示的红色文本

ERROR: Command errored out with exit status 1:
     command: 'c:\users\kevin løfgren\appdata\local\programs\python\python38-32\python.exe' 'c:\users\kevin løfgren\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\KEVINL~1\AppData\Local\Temp\tmpi743067b'
         cwd: C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-install-wli5xph4\pyinstaller_493a92d116a644ecb3d769ba9d19aa63
    Complete output (38 lines):
    running dist_info
    creating C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info
    writing C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\PKG-INFO
    writing dependency_links to C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\dependency_links.txt
    writing entry points to C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\entry_points.txt
    writing requirements to C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\requires.txt
    writing top-level names to C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\top_level.txt
    writing manifest file 'C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\SOURCES.txt'
    reading manifest file 'C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\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 0xf8 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\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\SOURCES.txt'
    creating 'C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.dist-info'
    error: invalid command 'bdist_wheel'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\kevin løfgren\appdata\local\programs\python\python38-32\python.exe' 'c:\users\kevin løfgren\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\KEVINL~1\AppData\Local\Temp\tmpi743067b' Check the logs for full command output.

似乎未检测到wheel package。

尝试安装它:

pip install wheel

我认为这可能是一个权限问题。 以管理员身份执行 Windows shell 并重试。

暂无
暂无

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

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