使用Homebrew在Snowleopard上升级的Python现在pip和easy_install不起作用 [英] Upgraded Python on Snowleopard Using Homebrew now pip and easy_install don't work

查看:85
本文介绍了使用Homebrew在Snowleopard上升级的Python现在pip和easy_install不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是python的新手,我更改了路径以指向新的python 2.7,但是pip和easy_install和mercurial仍在使用默认的安装版本2.6.我该如何解决?

I am new to python, I have changed my path to point to the new python 2.7, but pip and easy_install, and mercurial are still looking at the default installed version 2.6. How do I fix this?

推荐答案

您必须使用Python 2.7和所有其他模块重新安装easy_install.不要期望安装了其他解释器的现有软件包可以与新的解释器一起使用.重新安装到新的Python 2.7解释器中是必经之路.第一步:通过下载ez_setup.py(Google)并使用2.7解释器运行它来重新安装easy_install.

You have to re-install easy_install using Python 2.7 and all other modules as well. Don't expect that existing packages installed with a different interpreter are supposed to work out of the box with a new interpreter. Reinstalling into the new Python 2.7 interpreter is the way to go. First step: reinstall easy_install by downloading ez_setup.py (Google) and running it with the 2.7 interpreter..

这篇关于使用Homebrew在Snowleopard上升级的Python现在pip和easy_install不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆