windows32位安裝MYSQL-python1.2.3

來源:互聯網
上載者:User

標籤:

建議不要用pip安裝MYSQL-python,因為會自動選擇MYSQL-python1.2.5這個版本,但是這個版本不支援windows 32位系統。

1.首先安裝VS2008,因為要依賴VC9.0編譯MYSQL-python,或者到微軟官方下載VCForPython27.msi,都可以,如果裝了VS2008還報錯,那麼就必須要裝VCForPython27.msi。

2.下載MYSQL-python1.2.3版本。(指令碼之家已經打包好了,直接下載就好http://www.jb51.net/softs/73369.html)

3.然後直接安裝就好。安裝完以後,測試是否安裝成功

D:\>python
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on wi
n32
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb

>>>

如果匯入MySQLdb不會報錯,說明安裝成功。

windows32位安裝MYSQL-python1.2.3

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.