解決mysqlclient模塊安裝問題


安裝mysql驅動:

pip install mysqlclient
  • 1

錯誤:

error: command 'C:\\Users\\...\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
  • 1

搜索后發現http://www.cnblogs.com/stones/p/5833845.html
可能是版本問題
資源地址:http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
仍然錯誤:

Requirement 'mysqlclientm-win_amd64.whl' looks like a filename, but the file does not exist mysqlclientm-win_amd64.whl is not a valid wheel filename.
  • 1
  • 2

• 手動下載資源:

mysqlclient 1.3.10 cp27 cp27m win_amd64.whl wheel install mysqlclient-1.3.10-cp27-cp27m-win_amd64.whl
  • 1
  • 2

錯誤:cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.
選擇mysqlclient-1.3.10-cp27-cp27m-win32.whl 使用pip安裝

pip install mysqlclient-1.3.10-cp27-cp27m-win32.whl
  • 1

成功


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM