No module named 'PIL' in Python - : No module named 'sqlalchemy' ERROR. after install the modules

Viewed 20

I got this problem and I have read some solution about installing the modules before using it, and I did that, I install the modules, but yet this message appear to me " No module named 'PIL' in Python".

from PIL import ImageTk
from sqlalchemy import create_engine
from sqlalchemy.exc import SQLAlchemyError
1 Answers

@Ryuga is likely correct. The python interpreter you installed those modules/packages to is likely the system default and not the one PyCharm is using to run your code.

Go to File -> Settings -> Project -> Python Interpreter to see which your project is using and make changes accordingly.

Related