Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

`pip install --upgrade python` tries to install CPython-2.5 #583

Open
zed opened this Issue · 7 comments

3 participants

@zed

pip should produce an intelligible error message if someone tries to install/upgrade python using pip. It might be useful for people familiar with RVM but new to pip/virtualenv. A link to something like pythonz would be nice.

@pnasrat
Owner

I'd probably argue we shouldn't have the entry on pypi at all.

http://pypi.python.org/pypi/Python

@pnasrat
Owner

What version of pip/virtualenv?

pnasrat@pnasrat:issue583$ ./ve/bin/pip install --upgrade Python
Requirement already up-to-date: Python in /usr/lib/python2.7/lib-dynload
Cleaning up...
pnasrat@pnasrat:issue583$ ./ve/bin/pip --version
pip 1.1.post2 from /tmp/issue583/ve/lib/python2.7/site-packages (python 2.7)
pnasrat@pnasrat:issue583$ virtualenv --version
1.7.1.2
@zed

pip/virtualenv versions:

$ pip install python
Requirement already satisfied (use --upgrade to upgrade): python in ./.pythonz/pythons/CPython-2.7/lib/python2.7/lib-dynload
Cleaning up...

$ pip install --upgrade python
Downloading/unpacking python
  Using download cache from /home/z/.pip/download_cache/http%3A%2F%2Fwww.python.org%2Fftp%2Fpython%2F2.5%2FPython-2.5.tgz
  Running setup.py egg_info for package python
  ...snip...

$ pip --version
pip 1.0.2 from /home/z/.virtualenvs/tmp/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg (python 2.7)

$ virtualenv --version
1.6.4

With updated versions:

$ pip install python
Requirement already satisfied (use --upgrade to upgrade): python in ./.pythonz/pythons/CPython-2.7/lib/python2.7/lib-dynload
Cleaning up...

$ pip install --upgrade python
Requirement already up-to-date: python in ./.pythonz/pythons/CPython-2.7/lib/python2.7/lib-dynload
Cleaning up...

$ pip --version
pip 1.1 from /home/z/.virtualenvs/tmp-newve/lib/python2.7/site-packages/pip-1.1-py2.7.egg (python 2.7)

$ virtualenv --version
1.7.2
@jezdez
Owner

Huh, so in other words this seems to have been fixed?

@zed

Read past the title. The issue is pip should not pretend that it may install python if it can't. An appropriate error message would fix it.

@jezdez
Owner

I see, thanks for the pointer.

@pnasrat
Owner

I raised the issue with Guido, he was unaware of this pkg on pypi, I need to chase further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.