scrapy runtime error No module named _sqlite3

Scrapy error when running on the new server

exceptions.ImportError: No module named _sqlite3

the reason

Due to the new environment sqlite missing dependencies, the compiler is python3 though not an error. There will be problems when running scrapy

Solution

Installation depends

yum install sqlite-devel 

或者 

yum install sqlite*

 

 

Enter the installation location of python
cd pythton3.8

Recompile

./configure
make && make install

 



Guess you like

Origin www.cnblogs.com/jasonLiu2018/p/11955554.html