1
kungfuchicken 2016-04-26 12:07:49 +08:00
export PATH=$PATH:/usr/local/mysql/bin
/usr/local/mysql/bin 是你 MySQL 的安装路径 pip install MySQL-Python |
2
Gary_Cheung OP @kungfuchicken 抛了个错误如下
bash-3.2$ export PATH=$PATH:/usr/local/mysql/bin bash-3.2$ pip install MySQL-Python --------------------------------------------------- Collecting MySQL-Python /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.py:266: SubjectAltNameWarning: Certificate for pypi.python.org has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.) SubjectAltNameWarning Using cached MySQL-python-1.2.5.zip Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/tmp/pip-build-931zi2ld/MySQL-Python/setup.py", line 13, in <module> from setup_posix import get_config File "/private/tmp/pip-build-931zi2ld/MySQL-Python/setup_posix.py", line 2, in <module> from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-931zi2ld/MySQL-Python/ ---------------------------------------------------- [问题]: python setup.py egg_info 是什么东东? 发现好多错误和它有关 |
3
gotounix 2016-04-26 13:20:09 +08:00
sudo apt-get install mysql-server libmysqld-dev
|
4
kungfuchicken 2016-04-26 13:44:14 +08:00 1
|
5
caomaocao 2016-04-26 14:05:56 +08:00
是不是 os x 10.10 以后?~ 这之后的加了个权限的什么我记不清了, 要打开 os x 的 root 权限再开下啥的。以前查了好久
|