我正在尝试使用:
安装mysql-pythonpip install mysql-python
下面安装了软件包,虽然我已经在系统上安装了Python 2.6。
/Library/Python/2.5/site-packages
如何安装pip:
/Library/Python/2.6/site-packages
我尝试使用:
pip install --install-option="--prefix=/Library/Python/2.6/site-packages/" mysql-python
但这不起作用,它输出:
Requirement already satisfied (use --upgrade to upgrade): mysql-python in
/Library/Python/2.5/site-packages
Cleaning up...
答案 0 :(得分:27)
你应该有pip-2.6。如果你没有pip版本2.6:
您必须为Python 2.6安装setuptools(例如:setuptools-0.6c11-py2.6.egg)。然后,你有easy_install-2.6。你可以这样做:
easy_install-2.6 pip
最后,你有pip版本2.6。安装mysql-python:
pip-2.6 install mysql-python