關於windows x64安裝MySQL-python失敗解決

來源:互聯網
上載者:User

標籤:mysql-python;mysqldb;

MySQL-python只是有32位系統安裝包,如果下載exe或者pip安裝,也會報錯。

報錯如下:

_mysql.c() : fatal error C1083: Cannot include : : No such directoryerror: command l.exe----------------------------------------Cleaning up...Command C:\Users\Admin1\Desktop\python\virtual\Scripts\python.exe -c uptools, tokenize;__file__=MySQL-python\\setup.pyead().replace(, ), __file__, ))\appdata\local\temp\\pip-pmwrd-record\install-record.txt --single-version-externally-managed ----install-headers C:\Users\Admin1\Desktop\python\virtual\include\site\python2failed error code C:\Users\Admin1\Desktop\python\virtual\build\MySQL-pythonStoring debug log failure C:\Users\Admin1\pip\pip.

需要安裝MYSQL資料庫和vc相關庫,而自己只需要方便遠端連線對伺服器資料庫操作和學習python,所以沒有必要安裝這些。

找到如下解決方案:

install using wheel

pip install wheel

MySQL_python安裝版本 http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

下載後,直接使用pip安裝:

pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl

如下:

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M01/7C/AC/wKiom1bVX_eQrP1eAAaimxlVzTc369.jpg" title="01.jpg" alt="wKiom1bVX_eQrP1eAAaimxlVzTc369.jpg" />


這樣就安裝成功。

本文出自 “都市布衣” 部落格,請務必保留此出處http://sunday208.blog.51cto.com/377871/1746404

關於windows x64安裝MySQL-python失敗解決

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.