python ModuleNotFoundError: No module named ‘pymysql‘

D:\package\conda\python.exe D:/file/pythonApi/run_api/run_api_v1.py
Traceback (most recent call last):
  File "D:/file/pythonApi/run_api/run_api_a6_1.py", line 13, in
    from pdcomm import dbinfo
  File "D:\file\pythonApi\pdcomm\dbinfo.py", line 12, in
    engine_server = create_engine(db_link, echo=False, poolclass=NullPool, pool_recycle=2)
  File "", line 2, in create_engine
  File "D:\package\conda\lib\site-packages\sqlalchemy\util\deprecations.py", line 298, in warned
    return fn(*args, **kwargs)
  File "D:\package\conda\lib\site-packages\sqlalchemy\engine\create.py", line 548, in create_engine
    dbapi = dialect_cls.dbapi(**dbapi_args)
  File "D:\package\conda\lib\site-packages\sqlalchemy\dialects\mysql\pymysql.py", line 59, in dbapi
    return __import__("pymysql")
ModuleNotFoundError: No module named 'pymysql'

python ModuleNotFoundError: No module named ‘pymysql‘_第1张图片

以上可能是由于 编译器的问题,更换一下试试看

python ModuleNotFoundError: No module named ‘pymysql‘_第2张图片

 

你可能感兴趣的:(python学习,python,开发语言)