ERROR: Command errored out with exit status 2: 'f:\python\python.exe' 'f:\python\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-2385mczq\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.tuna.tsinghua.edu.cn/simple/ -- 'numpy >= 1.15' 'scipy >= 1.1.0' 'setuptools>=40.8.0' wheel Check the logs for full command output.
这是我第一次遇到的问题。看到库名和版本信息,首先想到更新版本——但是我的版本更新后,出现了下列问题:
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
关于Microsoft Visual C++ 14.0 “Build Tools for Visual Studio”安装的问题,在这篇博客中有很好的解决方案!
https://blog.csdn.net/qq_38161040/article/details/88203864
安装后又出现了第一次遇到的问题,经搜寻后找到这样的方法:可以安装whl文件解决,方法可见此博客:
最后就解决啦,希望对大家有帮助!