[英]Path configuration for sqlite3 in python3.6
I have a system Centos7 which has python2.7
as default and python3.6
. 我有一个Centos7系统,它的默认python3.6
python2.7
和python3.6
。 Then I am running the following command on my django
version=2.1
project python3 manage.py migrate
but unfortunately I am having the following error No _sqlite3 module
. 然后我在django
version=2.1
项目python3 manage.py migrate
No _sqlite3 module
上运行以下命令,但是不幸的是,我遇到了以下错误No _sqlite3 module
。
I did some research and found that I should install sqlite-devel
but still not working. 我进行了一些研究,发现应该安装sqlite-devel
但仍然无法正常工作。
Check that your Python 3.6 was built with sqlite enabled. 检查您的Python 3.6是否已启用sqlite构建。 In that case there should be an _sqlite3.so
in python3.6's lib-dynload
directory. 在这种情况下,python3.6的lib-dynload
目录中应该有一个_sqlite3.so
。
If you are going to manually rebuild python 3, see the answer to this question . 如果您要手动重建python 3,请参阅此问题的答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.