Websoft9Archive / role_common

common role
Other
0 stars 5 forks source link

pymysql requirtments python3.6+ mysql5.6+ mariadb10.0 #8

Open zengxc-1996 opened 3 years ago

zengxc-1996 commented 3 years ago

when I execate pip install PyMySQL -U

    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)