问题
Error while installing NumPy in PyCharm.
Tried installing Microsoft Visual C++ 14.0 . Still not working. NumPy is getting installed by command pip3 install numpy in the cmd terminal but when trying to install it in project interpreter in PyCharm this error pops up. I have checked other forums with similar error but am not able to find a solution.
回答1:
Try upgrading your version of pip using this command --> python -m pip install --upgrade pip
Then use the following command to install the numpy --> pip install numpy
回答2:
Solved
When installing visual studio [link] (https://visualstudio.microsoft.com/visual-cpp-build-tools/)
Offline Installer: [https://aka.ms/vs/16/release/vs_buildtools.exe]
Tick the checkbox of C++ build tools option in the installer. It will be around 2 Gb.
Once installed it will tell you to restart your system. After restarting
Go to Pycharm --> File --> Settings --> Project --> Project interpreter --> click the + symbol at the top right side , serach for numpy and click install package.
回答3:
Install visual studio c++ -> build tools C++
restart the machine and then go to pycharm->settings->project->project interpreter-> click on + symbol on the right top-> search for numpy -> click install package at the left bottom
now you should be good
来源:https://stackoverflow.com/questions/60439000/unable-to-install-numpy-in-pycharm-version-9-3-3-python-version-3-8-2