python 环境踩坑

服务器上的python版本不要超过2个,超过2个就会很乱。最近项目新版本上线,在老环境python3.5里一直起不起来,报错:
ImportError: dynamic module does not define module export function (PyInit__sqlite3)
查了很久才知道是python3.5环境有问题,装python3.5的时候sqlite3这个包没装进去,于是就装了python3.6, 代码就起起来了
参考:centos7装python3的博客 centos7装python3的博客

猜你喜欢

转载自blog.csdn.net/python_tty/article/details/80455526