ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-IFETFA/pymysql/setup.py'"'"'; __file__='"'"'/tmp/pip-install-IFETFA/pymysql/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-aRBaGr
cwd: /tmp/pip-install-IFETFA/pymysql/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-IFETFA/pymysql/setup.py", line 6, in <module>
with open("./README.rst", encoding="utf-8") as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[root@iZj6cahkkav601l3ke0bw6Z ~]# pip -V
pip 20.3.3 from /usr/lib/python2.7/site-packages/pip (python 2.7)
when I execate
pip install PyMySQL -U