Mac 中的 Python 2.6 由于更新失败而损坏
我是一个 mac 新手,我尝试将我的 python 版本从 2.6 更新到 2.7。不成功,我改变主意,卸载了我的python2.7。我以前遇到过一个问题,如果我输入以下内容:
python setup.py install
它不会安装 python2.6 的软件包,而是安装到已删除的 2.7 版本,为了使其工作,我必须输入
python2.6 setup.py install
现在,当我尝试使用 easy_install 或pip (顺便说一句,我在 2.7 问题后安装了 pip)我收到以下巨大消息错误:此处 和 < a href="http://pastie.org/1789165" rel="nofollow">此处。我想知道如何清理我的烂摊子。
I'm a mac newbie and I tried to update my python version from 2.6 to 2.7. Unsuccessful, I changed my mind and uninstalled the python2.7 I had. I had a previous issue that if I typed something like:
python setup.py install
It would not install the package for python2.6, installing to the removed 2.7 version instead, to make it work I have to put
python2.6 setup.py install
And now when I try to install something with easy_install or pip (by the way, pip I have installed after 2.7 issue) I got the following huge message errors: here and here. I want to know how can I clean up my mess.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
既然您正在尝试安装 MySQLdb,那么您可以尝试 ActivePython 吗?
pypm install mysql-python
(请参阅PyPM Index)..无需编译确保
/usr/ local/bin/
位于您的$PATH
前面。要卸载 ActivePython,您可以执行以下操作:
或者使用 sudo pythonselect 2.6 切换
/usr/local/bin
中的默认 Python(如果您安装了多个版本的非系统 Python)Since you were trying to install MySQLdb, how about you give ActivePython a try?
pypm install mysql-python
(see PyPM Index) .. no compilation requiredMake sure that
/usr/local/bin/
is in front of your$PATH
.To uninstall ActivePython, you can do:
Or, use
sudo pythonselect 2.6
to switch the default Python in/usr/local/bin
(if you have multiple versions of non-System Pythons installed)