我已经在cmd上安装了NumPy,并在空闲时运行,但是在PyCharm中,它说:
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads` proposed solution **Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\ACER\This PC\Downloads\Video\pycharm\venv\Scripts\python.exe'.**
您的虚拟环境是否由numpy具有二进制轮子的Python版本构成? As of this post,表示Python 3.5-3.8、32位或64位Intel。
如果是(您可以通过运行Python REPL,即venv\Scripts\python
进行检查,则可以尝试升级打包工具链并重新安装。在命令行中(从错误中命名的pycharm
目录中)运行以下命令:
venv\Scripts\python -m pip install -U pip setuptools wheel
venv\Scripts\python -m pip install -U numpy