如何在PyCharm上安装NumPy?

问题描述 投票:0回答:1

我已经在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'.**
python numpy pycharm installation-package
1个回答
0
投票

您的虚拟环境是否由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
© www.soinside.com 2019 - 2024. All rights reserved.