安装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\

 

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

 

 

 

解决办法:

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

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

 

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

 

 

速度过慢可修改为清华源:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple

 

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

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

 

上一篇:Python操作mysql之模块pymysql


下一篇:【Python】 读写MySQL