這篇文章給大家介紹Windows10-python2.7安裝MySQLdb報錯該怎么辦,內容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。
在Windows10系統上,Python2.7安裝MySQLdb報錯:Microsoft Visual C++ 9.0 is required.......
根據報錯的提示解決沒用.....
根據網上資料,最終解決:
下載MySQL_python-1.2.5-cp27-none-win_amd64.whl(https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python,然后pip install xxxx.whl安裝即可)
D:\01 software\Python相關軟件>pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl You are using pip version 7.1.0, however version 9.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. Processing d:\01 software\python????\mysql_python-1.2.5-cp27-none-win_amd64.whl Installing collected packages: MySQL-python Successfully installed MySQL-python-1.2.5 D:\01 software\Python相關軟件>python Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import MySQLdb >>> exit Use exit() or Ctrl-Z plus Return to exit >>> ^Z
關于Windows10-python2.7安裝MySQLdb報錯該怎么辦就分享到這里了,希望以上內容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。