Using cached html-1.16.tar.gz (7.6 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.
时间: 2023-07-02 13:17:58 浏览: 328
opencv-python-4.10.0.84.tar.gz
5星 · 资源好评率100%
这个错误提示与缺少 setuptools 模块有关,建议先尝试升级 pip 和 setuptools:
```
pip install --upgrade pip setuptools
```
如果还是无法解决问题,可以尝试使用虚拟环境或者 conda 管理包依赖。同时,也可以尝试使用清华镜像或者其他镜像源安装:
```
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple html
```
阅读全文