1
我想安裝mysqlclient
並使用它與python3所以只需鍵入命令行:安裝的mysql與python3
$ sudo -H pip3 install mysqlclient
Requirement already satisfied: mysqlclient in /usr/local/lib/python3.5/dist-packages
然後
$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysqlclient
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'mysqlclient'
這裏有什麼問題?
注意:的libmysqlclient-dev的,它已經安裝了最新版本(5.7.17-0ubuntu0.16.04.2)