【Django】WIN10安裝MySQL-python時遇到403 SSL is required
阿新 • • 發佈:2019-01-28
先說明下我是在從官網下載的包裡面進行操作的
執行python setup.py install後:
剛開始看到命令列中的提示時我還以為是因為沒配置IIS的問題,因為我WIN10是新裝的英文版,開啟Windows Features後發現果然沒配置IIS,於是進行了配置重啟後以為好了,但結果還是沒什麼變化。
後來我轉換了思路,放棄了從官網下載的mysql-python包,直接在命令列中pip install mysql-python
。但最後會有個抱錯資訊:
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).
Get it from http://aka.ms/vcpython27
①因此我根據上面提供的網址下載VCforPython27,安裝即可。
當我嘗試再次執行pip install mysql-python的命令時,發現又出錯了:
No such file or directory
error: command '"C:\Users\xxx\AppData\Local\Programs\Common\Microsoft\Visua
l C++ for Python\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2
②說明需要下載驅動:
最後在cmd中執行pip install mysql
時就成功了