问题:
下载包的时候出现如下错误:
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.
该问题出现的原因在于 setuptools
版本过高,引起的不兼容问题
解决:
pip uninstall setuptools
pip install setuptools==69.0.0
pip install <package-name>