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?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
You need to install
pip
andsetuptools
again (which provides theeasy_install
command) for your new version of Python.pip
andsetuptools
are not globally installed, rather they must be installed specifically for each version of Python on your system.To install
pip
:To install
setuptools
:… but you should probably be using Distribute (it's a newer version of
setuptools
):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..