Window7 python2.7 拋錯ImportError No module named mysql.connector

hackeruncle發表於2017-01-17

錯誤:
ImportError No module named mysql.connector

1.下載mysql-connector-python-2.2.2.zip 解壓 如 C:\Users\jpwu\Desktop\mysql-connector-python-2.2.2

2.開啟cmd
cd /d C:\Users\jpwu\Desktop\mysql-connector-python-2.2.2
python setup.py install

3.驗證
python
>> import mysql.connector

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2132592/,如需轉載,請註明出處,否則將追究法律責任。

相關文章