问题发生
安装环境
操作系统:CentOS
Python:3.8.0
安装虚拟环境的时候出错
pip3 install virtualenvwrapper
出现错误文章来源:https://www.toymoban.com/news/detail-504614.html
[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.
解决办法
pip install --upgrade setuptools
再执行pip install virtualenvwrapper 安装成功文章来源地址https://www.toymoban.com/news/detail-504614.html
到了这里,关于pip intall 出现 error: subprocess-exited-with-error 错误的解决办法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!