No module named sys


After creating Django project, 'No module named sys' error message is displayed in file. But Django works well anyway.

How can I solve this?



Please try File | Invalidate Caches / Restart.., wait for indexing to finish, then see if the problem remains.

If the issue persists, let me know your Python version and provide a list of installed packages.


Hi Sergey Karpov, I am having the same problem. I am using python3.7, Also I installed other libraries like Matplolib using pip. But intellij is still asking me to install Matplotlib, I installed matplotlib using intellij but Im still getting the same errors, attached is the screenshot. When I type: pip list: I see that Matplotlib and Numpy are both installed, how can I import those libraries 



Do you see the same packages when you look at package list in the interpreter settings? Make sure you've installed packages for the correct interpreter/environment and do File > Invalidate caches/restart