Ubuntu Mate PYTHON3 安裝 MYSQL API
1. 下載 mysqlclient-python-master.zip
點選網址下載ZIP檔: mysqlclient-python-master.zip
2. 指令安裝 mysqlclient-python-master.zip
解壓縮後在資料夾底下打開COMMAND輸入:python3 setup.py install
如果出錯,請先行輸入以下兩行指令
sudo apt-get install libmysqlclient-dev
sudo apt-get install python3-dev(或python-dev)
參考 reference:
https://stackoverflow.com/questions/45125422/how-to-import-mysqlclient-in-python3
下載mySQL client ZIP檔網址
https://github.com/PyMySQL/mysqlclient-python/archive/master.zip
解決出錯
https://www.nctusam.com/2017/05/25/%E5%AE%89%E8%A3%9D-mysql-python-%E7%92%B0%E5%A2%83%E9%81%87%E5%88%B0%E7%9A%84%E5%95%8F%E9%A1%8C/
點選網址下載ZIP檔: mysqlclient-python-master.zip
2. 指令安裝 mysqlclient-python-master.zip
解壓縮後在資料夾底下打開COMMAND輸入:python3 setup.py install
如果出錯,請先行輸入以下兩行指令
sudo apt-get install libmysqlclient-dev
sudo apt-get install python3-dev(或python-dev)
參考 reference:
https://stackoverflow.com/questions/45125422/how-to-import-mysqlclient-in-python3
下載mySQL client ZIP檔網址
https://github.com/PyMySQL/mysqlclient-python/archive/master.zip
解決出錯
https://www.nctusam.com/2017/05/25/%E5%AE%89%E8%A3%9D-mysql-python-%E7%92%B0%E5%A2%83%E9%81%87%E5%88%B0%E7%9A%84%E5%95%8F%E9%A1%8C/
留言
張貼留言