pip install mysql-connector-pyt

2017-08-15  本文已影响407人  a_只羊

在使用 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 进行安装
上一篇下一篇

猜你喜欢

热点阅读