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

 

posted @ 2021-05-17 19:18  小七Libra  阅读(3581)  评论(0编辑  收藏  举报