Python 3 ImportError:没有名为“ConfigParser”的模块我在试着pip install这个MySQL-python包裹,但我得到一个ImportError.Jans-MacBook-Pro:~ jan$ /Library/Frameworks/Python.framework/Versions/3.3/bin/pip-3.3 install MySQL-pythonDownloading/unpacking MySQL-python Running setup.py egg_info for package MySQL-python Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/var/folders/lf/myf7bjr57_jg7_5c4014bh640000gn/T/pip-build/MySQL-python/setup.py", line 14, in <module>
from setup_posix import get_config File "./setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/var/folders/lf/myf7bjr57_jg7_5c4014bh640000gn/T/pip-build/MySQL-python/setup.py", line 14, in <module>
from setup_posix import get_config File "./setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParserImportError: No module named 'ConfigParser'----------------------------------------Command python setup.py egg_info failed with error code 1 in /var/folders/lf/myf7bjr57_jg7_5c4014bh640000gn/T/pip-build/MySQL-pythonStoring complete log in /Users/jan/.pip/pip.logJans-MacBook-Pro:~ jan$有什么想法吗?
3 回答
临摹微笑
TA贡献1982条经验 获得超2个赞
six
try: import configparserexcept: from six.moves import configparser
添加回答
举报
0/150
提交
取消