반응형
오류가 발생합니다
pip 버전
핍 -3.3 -V /usr/local/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg (python 3.3)에서 pip 1.4.1
Python3.3 도움말에서 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
해결 방법
python3에서 ConfigParser
는 configparser
로 이름이 변경되었습니다. MySQL-python
이 python3을 지원하지 않는 것 같습니다. 시험:
$ pip install PyMySQL
참조 페이지 https://stackoverflow.com/questions/20049590
반응형
'파이썬' 카테고리의 다른 글
파이썬 여러 JSON 레코드를 Pandas 데이터 프레임으로 읽기 (0) | 2020.12.31 |
---|---|
파이썬 Windows에서 tkinter를 pip 또는 easy_install하는 방법 (0) | 2020.12.31 |
파이썬 Python NumPy에서 np.mean () 대 np.average ()? (0) | 2020.12.31 |
파이썬 변수 주위에 큰 따옴표 인쇄 (0) | 2020.12.31 |
파이썬 matplotlib에서 서브 플롯 사이의 간격을 제거하는 방법은 무엇입니까? (0) | 2020.12.31 |
댓글