安裝pymysql報錯 TypeError: 'encoding' is an invalid keyword argument for this function


安裝pymysql報錯:

TypeError: 'encoding' is an invalid keyword argument for this function

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\lenovo\a
ppdata\local\temp\pip-install-ypbeoo\pymysql\

 

 

 

 

解決辦法:

更新插件
python -m pip install --upgrade setupTools
python -m pip install --upgrade pip

 

 

 

 

速度過慢可修改為清華源:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple

 

更新完成再次安裝pymysql成功。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM