Installing packages but still python interpreter doesn't recognize using pycharm
I'm trying to install pytorch, but when I'm trying to import, my pycharm doesn't recognize this package although I'm sure I've installed this package on the same interpreter.



What I am missing?!

Thanks for your help.

You are installing the packages in your base interpreter i.e your system interpreter. And I guess you started your Pycharm project using a virtual environment. So to install to your Pycharm venv. You need to start the console below i.e The Terminal in your Pycharm project and then perform pip install package_name again. This should install it to your virtual env. And then python will pick it up. 

If you want to have all base packages from your system into your Pycharm venv. You can check the inherit base packages option while you are starting a new project with a new virtual env.
