在windows 命令行执行 pip install -r requirements.txt
报错
Command "python setup.py egg_info" failed with error code 1
解决方法
升级 setuptools 和 pip
pip install --upgrade setuptools
python -m pip install --upgrade pip
如果升级pip后,pip install
,抛出
Cannot open D:\XXX\XXX\venv\Scripts\pip-script.py
请参考以下文章
https://blog.csdn.net/qq_45135600/article/details/122715046?spm=1001.2014.3001.5502
如果抛出以下错误
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":https://visualstudio.microsoft.com/visual-cpp-build-tools/
请看文章
https://blog.csdn.net/qq_45135600/article/details/122712290?spm=1001.2014.3001.5502