标签:man python3.4 libxml 需要 pip sqlite3 sql dev cti
python3下 import sqlite3 报错: NO module named ‘_sqlite3‘
是因为多版本ptyhon问题,需要重新编译python 步骤如下:
yum -y install sqlite-devel
cd python3.4.3 #进入python源码包
./configure
make && make install
rm /usr/bin/python
ln -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
标签:man python3.4 libxml 需要 pip sqlite3 sql dev cti
原文地址:http://www.cnblogs.com/yszbgs/p/6830691.html