關於windows在pycharm下安裝關於mysql的模組
阿新 • • 發佈:2018-12-12
pycharm 版本為2018版,python為3.7。安裝Python-mysql中,具體模組為mysql報錯如下(只選取了報錯部分):
Proposed solution:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'D:\pycharmP\python\mysql_python\venv\Scripts\python.exe'.
Command output:
warning: build_py: byte-compiling is disabled, skipping.
_mysql.c(42): fatal error C1083: 無法開啟包括檔案: “config-win.h”: No such file or directory error: command 'D:\\vs2015\\VC\\BIN\\cl.exe' failed with exit status 2
之後嘗試過,降低pip版本,降低Python版本,直譯器重新設定,然而並無任何效果。
但是沒有新版本的Python3的方法,事實證明在Windows下安裝Python庫還是比較麻煩,
功夫不負有心人,實際關於mysql的包不只有mysql一個,例如mysqldb-rich,mysqldbda等,但是這些依舊不能安裝。