mac安装pymysql

作者: 涓涓自然卷 | 来源:发表于2021-02-03 14:59 被阅读0次

    命令:终端输入-> pip3 install pymysql
    验证:python进入窗口输入 -> import pymysql 不报错即可

    ➜  ~ pip3 install pymysql
    Collecting pymysql
      Downloading https://files.pythonhosted.org/packages/4f/52/a115fe175028b058df353c5a3d5290b71514a83f67078a6482cff24d6137/PyMySQL-1.0.2-py3-none-any.whl (43kB)
         |████████████████████████████████| 51kB 169kB/s
    Installing collected packages: pymysql
    Successfully installed pymysql-1.0.2
    WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    ➜  ~ python
    Python 3.7.4 (v3.7.4:e09359112e, Jul  8 2019, 14:54:52)
    [Clang 6.0 (clang-600.0.57)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pymysql
    >>>
    
    ``

    相关文章

      网友评论

        本文标题:mac安装pymysql

        本文链接:https://www.haomeiwen.com/subject/sjtmtltx.html