반응형
# pip3.4 install mysql-python
Downloading/unpacking mysql-python
Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
Running setup.py (path:/tmp/pip_build_root/mysql-python/setup.py) egg_info for package mysql-python
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip_build_root/mysql-python/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 17, in <module>
File "/tmp/pip_build_root/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip_build_root/mysql-python/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 debug log for failure in /root/.pip/pip.log
해결 방법
pip3.4 install --allow-external mysql-connector-python
'ENGINE': 'mysql.connector.django',
참조 페이지 https://stackoverflow.com/questions/27748556
반응형
'MySql' 카테고리의 다른 글
MySQL Woocommerce 제품 갤러리 이미지 URL을 얻는 방법은 무엇입니까? (0) | 2020.11.25 |
---|---|
MySQL How to update multiple rows with single MySQL query in python? (0) | 2020.11.25 |
MySQL : 행을 복사하지만 몇 개의 필드를 변경하는 방법은 무엇입니까? (0) | 2020.11.25 |
MySQL PHP 경고 : mysqli_connect () : (HY000 / 2002) : 연결이 거부되었습니다. (0) | 2020.11.25 |
MySQL "ERROR 1005 (HY000): Can't create table 'foo.#sql-12c_4' (errno: 150)" (0) | 2020.11.25 |
댓글