当前位置:   article > 正文

pip intall 出现 error: subprocess-exited-with-error 错误的解决办法

subprocess-exited-with-error

pip intall 出现 error: subprocess-exited-with-error 错误的解决办法

问题发生

安装环境
操作系统:CentOS
Python:3.8.0

安装虚拟环境的时候出错

pip3 install virtualenvwrapper
  • 1

出现错误

[root@i-umqgk1km bin]# pip3 install virtualenvwrapper
Collecting virtualenvwrapper
  Using cached virtualenvwrapper-4.8.4.tar.gz (334 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

解决办法

pip install --upgrade setuptools
  • 1

再执行pip install virtualenvwrapper 安装成功

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/47193?site
推荐阅读
相关标签
  

闽ICP备14008679号