pip3으로 MySQLdb를 설치했지만 가져올 때 오류가 발생합니다. 왜?왜 pip3 패키지를 가져올 수 없습니까?
pip3 install mysqlclient
Requirement already satisfied (use --upgrade to upgrade): mysqlclient in /usr/local/lib/python3.5/dist-packages
지금 당신은 이미 설치되어 보는 바와 같이하지만 난 그것을 가져있을 때 그것은이를 보여줍니다 : 그것은 어떤 모듈을 말을하지
Python 3.5.2 (default, Jun 30 2016, 12:36:02)
[GCC 5.3.1 20160413] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'MySQLdb'
>>>
. 내 우분투 노트북 문제가 발생하는 python3 두 개의 디렉토리가 있다고 생각합니다. 하나는 usr/local/bin이고 다른 하나는 usr/bin에 있습니다. 도와주세요.
'sudo pip3 install MySQL-python' – frist