반응형
오류가 발생합니다
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
반응형
'MySql' 카테고리의 다른 글
MySQL Create Database If Not Exists with PDO (0) | 2020.12.17 |
---|---|
MySQL 오류 1452 MySQL (0) | 2020.12.17 |
MySQL PHP를 사용하여 mysql 쿼리가 결과를 반환하지 않는지 확인하는 방법 (레코드를 찾을 수 없음)? (0) | 2020.12.17 |
MySQL 패키지 요구 사항 : libcurl.so.3 (0) | 2020.12.17 |
MySQL Laravel 데이터베이스 스키마의 MediumBlob (0) | 2020.12.16 |
댓글