python3下 import sqlite3 报错: NO module named ‘_sqlite3‘
是因为多版本ptyhon问题,需要重新编译python 步骤如下:
yum -y install sqlite-devel
cd python3.4.3 #进入python源码包./configuremake && make installrm /usr/bin/pythonln -s /usr/local/python.3.4 /usr/bin/python
linux centos7.0 64 位 python3.4 下 安装lxml报错 error:c ommand ‘gcc‘ failed with exit status 1 Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
需要安装依赖包,步骤如下:
yum install libxml2 libxslt-devel libxml2-devel
pip3 install lxml
时间: 2024-10-10 06:52:10