您的位置:首页 > 娱乐 > 明星 > pip 安装出现 ERROR: Command errored out with exit status 1: 问题解决

pip 安装出现 ERROR: Command errored out with exit status 1: 问题解决

2025/2/23 9:33:05 来源:https://blog.csdn.net/ppdyhappy/article/details/139638706  浏览:    关键词:pip 安装出现 ERROR: Command errored out with exit status 1: 问题解决

使用pip 安装第三方库,前面在升级pip(使用python.exe -m pip install --upgrade pip)也出现如下错误:

ERROR: Command errored out with exit status 1:
   command: 'd:\python_3_7_6\python.exe' 'C:\Users\xxxXXXXoooOOOO\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\xxxXXXXoooOOOO\AppData\Local\Temp\tmpnuowj59l'
       cwd: C:\Users\xxxXXXXoooOOOO\AppData\Local\Temp\pip-install-x1eu6x5h\pycryptodome
  Complete output (30 lines):
  Testing support for clang
  Traceback (most recent call last):
    File "C:\Users\xxxXXXXoooOOOO\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\pep517\_in_process.py", line 207, in <module>
      main()
    File "C:\Users\xxxXXXXoooOOOO\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\pep517\_in_process.py", line 197, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\xxxXXXXoooOOOO\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\pep517\_in_process.py", line 54, in get_requires_for_build_wheel
      return hook(config_settings)
    File "C:\Users\xxxXXXXoooOOOO\AppData\Local\Temp\pip-build-env-k8jgz0lh\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "C:\Users\xxxXXXXoooOOOO\AppData\Local\Temp\pip-build-env-k8jgz0lh\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "C:\Users\xxxXXXXoooOOOO\AppData\Local\Temp\pip-build-env-k8jgz0lh\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 490, in <module>
    File "C:\Users\xxxXXXXoooOOOO\AppData\Local\Temp\pip-install-x1eu6x5h\pycryptodome\compiler_opt.py", line 333, in set_compiler_options
      clang = compiler_is_clang()
    File "C:\Users\xxxXXXXoooOOOO\AppData\Local\Temp\pip-install-x1eu6x5h\pycryptodome\compiler_opt.py", line 257, in compiler_is_clang
      return test_compilation(source, msg="clang")
    File "C:\Users\xxxXXXXoooOOOO\AppData\Local\Temp\pip-install-x1eu6x5h\pycryptodome\compiler_opt.py", line 82, in test_compilation

解决办法:

到 C:\Users\用户名\AppData\Roaming下删除 Python文件夹

到 C:\Users\ppdyh\AppData\Local\Temp 下输出 pip开头的文件夹

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com