安装pymysql报错 TypeError: 'encoding' is an invalid keyword argument for this function

时间:2021-05-24 13:57:46   收藏:0   阅读:0

安装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成功。

技术图片

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!