首页 > 数据库> > python3.5导入pymysql模块报错File "/home/vagrant/microblog/venv/lib/python3.5/site-packages/pymysql/co
python3.5导入pymysql模块报错File "/home/vagrant/microblog/venv/lib/python3.5/site-packages/pymysql/co
作者:互联网
报错:
from . import connections # noqa: E402 E File "/home/ubuntu/.local/lib/python3.5/site-packages/pymysql/connections.py", line 206 E ): E ^ E SyntaxError: invalid syntax
原因:
安装的pymysql版本与python3.5版本不匹配
解决:
pip uninstall pymysql
pip install -Iv pymysql==0.9.3
标签:site,pymysql,connections,python3.5,报错,home 来源: https://www.cnblogs.com/yanlin-10/p/14900237.html