Jun-09-2019, 10:03 AM
(This post was last modified: Jun-09-2019, 10:04 AM by Gribouillis.)
If a module is not importable, it means that
sys.path
is incorrect. Try to do this: before the first import, writeimport sys raise RuntimeError(sys.path)then see why pymysql is not on the path. You could compare with the result of
>>> import pymysql >>> print(pymysql)in a python console.