0
[[email protected] bin]# pip3.5 install MySQL-python
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ahudhqst/MySQL-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-build-ahudhqst/MySQL-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ahudhqst/MySQL-python/
[[email protected] bin]#
我未能安裝MySQL-python(用於django)。我可以知道爲什麼會發生此錯誤嗎?我正在使用centos 6.5命令「python setup.py egg info」失敗,出現錯誤代碼1 ~~
由於錯誤狀態,您必須首先安裝ConfigParser模塊 – ForceBru
不是ConfigParser標準庫?如果你在命令行執行'python -c'導入ConfigParser'',你會得到什麼? –
當我在命令行執行'python -c'導入ConfigParser''時,它什麼也不做(可能意味着成功導入了ConfigParser)。沒有錯誤存在。 –