美文网首页
pip install mysql-connector-pyt

pip install mysql-connector-pyt

作者: a_只羊 | 来源:发表于2017-08-15 17:27 被阅读407次

    在使用 pip 安装 Python 数据库的时候可能会遇到以下配置错误:

    Command "/Users/Lee/Desktop/test/env/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-RtTEwT/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-7HMxU0-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/Lee/Desktop/test/env/include/site/python2.7/mysql-connector" failed with error code 1 in /private/tmp/pip-build-RtTEwT/mysql-connector/

    image.png

    解决方法如下:

    pip install mysql-connector-python-rf==2.1.3 进行安装
    

    相关文章

      网友评论

          本文标题: pip install mysql-connector-pyt

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