国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

pipinstalllxmlmysql-pythonerror

2019-11-14 17:20:45
字體:
來源:轉載
供稿:網友

問題0:

在安裝 MySQL-python時,會出現:

復制代碼
sh: mysql_config: not foundTraceback (most recent call last):  File "setup.py", line 15, in <module>    metadata, options = get_config()  File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config    libs = mysql_config("libs_r")  File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config    raise EnvironmentError("%s not found" % (mysql_config.path,))EnvironmentError: mysql_config not found
復制代碼

只要原因是沒有安裝:libmysqlclient-dev

sudo apt-get install libmysqlclient-dev

找到mysql_config文件的路徑

sudo updatedblocate mysql_config

mysql_config的位置為:/usr/bin/mysql_config

在mysql-python源碼包下找到:setup_posix.py 文件,然后找到文件中的 mysql_config.path 將其值改為:/usr/bin/mysql_config,然后 sudo python setup.py install ,就ok了

 

問題1:

ERROR: /bin/sh: 1: xslt-config: not found

make sure the development packages of libxml2 and libxslt are installed **

 

參考:

http://stackoverflow.com/questions/5178416/pip-install-lxml-error

http://stackoverflow.com/questions/21489720/installing-pyquery-via-pip

 

解決:

apt-get install libxslt1-dev

 

問題2:

error: Setup script exited with error: command 'gcc' failed with exit status 1

通過安裝如下庫即可解決:

sudo apt-get install python-dev

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 都安| 天祝| 商都县| 错那县| 榆社县| 聂荣县| 娱乐| 宣恩县| 沁源县| 攀枝花市| 灵璧县| 金阳县| 石泉县| 汶川县| 会理县| 鄢陵县| 磐安县| 孙吴县| 平遥县| 旺苍县| 通道| 楚雄市| 濮阳县| 化德县| 上饶县| 凉山| 黑水县| 平罗县| 灌南县| 南平市| 临桂县| 澄城县| 伊春市| 永济市| 英超| 浦东新区| 定西市| 商水县| 舒城县| 璧山县| 焉耆|