Dro*_*oid 7 python mysql django
我收到了一个错误
点子版
来自/usr/local/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg(python 3.3)的pip-3.3 -V pip 1.4.1
如何在Python3.3 helpp中安装MySQLdb ..
root@thinkpad:~# pip-3.3 install MySQL-python
Downloading/unpacking MySQL-python
Downloading MySQL-python-1.2.4.zip (113kB): 113kB downloaded
Running setup.py egg_info for package MySQL-python
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_root/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 "/tmp/pip_build_root/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'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/MySQL-python
Storing complete log in /root/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)
Ron*_*Ron 18
在python3 ConfigParser中重命名为configparser.它似乎MySQL-python不支持python3.尝试:
$ pip install PyMySQL
Run Code Online (Sandbox Code Playgroud)
PyMySQL是一个不同的模块,但它支持python3.
| 归档时间: |
|
| 查看次数: |
31676 次 |
| 最近记录: |