0
  1. I'm already installed numpy and it works in cmd.
  2. my Python version is 3.7.2 and numpy version is 1.16.0

When I use numpy in windows cmd, It works. import numpy is working well in the python interactive console. But in pyCharm, it doesn't work and errors with No module named 'numpy'.

How can I solve it?

WayToDoor
  • 1,180
  • 9
  • 24

1 Answers1

5

You probably arent using the same python installation in pycharm and in your console. Did you double-check in project settings ?

If you just want to install numpy, you can create a requirements.txt file and add numpy in it, pycharm will suggest to install it if not already done.

Alternatively, you could use a venv

WayToDoor
  • 1,180
  • 9
  • 24