简体   繁体   中英

How to install NumPy on PyCharm?

I have already installed NumPy on cmd and is running on idle but in PyCharm, it says:

 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'.**

Is your virtual environment made with a version of Python that numpy has binary wheels for? As of this post , that means Python 3.5-3.8, 32-bit or 64-bit Intel.

If yes (you can check by running the Python REPL, ie venv\Scripts\python ), you can try upgrading the packaging toolchain and install again. Run the following commands in the command line (from the pycharm directory named in the error):

venv\Scripts\python -m pip install -U pip setuptools wheel
venv\Scripts\python -m pip install -U numpy

I used this command in terminal and it works venv\Scripts\python -m pip install -U pip setuptools wheel venv\Scripts\python -m pip install -U

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM