yaconsult
Posts: 33
Joined: Fri Mar 23, 2012 2:29 pm

why does python-pip require an older version of python?

Sun Feb 10, 2013 9:12 am

Shouldn't there be a python-pip for python 2.7? What is the best solution?

root@raspberrypi:~# python -V
Python 2.7.3
root@raspberrypi:~# apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python2.6 python2.6-minimal
Suggested packages:
python2.6-doc binfmt-support
Recommended packages:
python-dev-all
The following NEW packages will be installed:
python-pip python2.6 python2.6-minimal
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,962 kB of archives.
After this operation, 13.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? n

User avatar
metachris
Posts: 96
Joined: Wed Feb 06, 2013 1:52 pm
Location: Vienna, Austria

Re: why does python-pip require an older version of python?

Sun Feb 10, 2013 8:06 pm

You can also install pip with python-setuptools (which includes the 'easy_install' command):

Code: Select all

sudo apt-get install python-setuptools
sudo easy_install pip
Sidenote: If you are running Python 3 or multiple Python versions at the same time, use the specific easy_install (eg. 'easy_install3.2' or 'easy_install2.7').

Yet another way to install pip is via the get-pip.py script from the official repo:

Code: Select all

wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py
pythonhosted.org/RPIO

yaconsult
Posts: 33
Joined: Fri Mar 23, 2012 2:29 pm

Re: why does python-pip require an older version of python?

Mon Feb 11, 2013 1:27 am

Thanks! I used easy-install. I guess the disadvantage is that it won't be automatically upgraded with python. Shouldn't the repo version have been updated to 2.7 when python was?

cae2100
Posts: 143
Joined: Tue Jan 08, 2013 10:35 am
Contact: Website

Re: why does python-pip require an older version of python?

Mon Feb 11, 2013 5:46 am

most plugins arent developed by python developers, rather third party developers, so no, they wont be updated with new python versions. in all honesty, I dont really see any difference between using 2.6 and 2.7 other than a few bug fixes, and even at that, you never actually see them anyhow.
If it isnt smoking and blown into pieces, it's not pushed far enough yet. :P
http://cae2100.wordpress.com

ShunJianLee
Posts: 70
Joined: Wed Nov 25, 2015 4:43 am

Re: why does python-pip require an older version of python?

Tue May 10, 2016 7:15 am

May i know how to reinstalling pip? thanks

User avatar
DougieLawson
Posts: 28829
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: why does python-pip require an older version of python?

Tue May 10, 2016 5:51 pm

ShunJianLee wrote:May i know how to reinstalling pip? thanks
If it's been completely removed
sudo apt-get install python{,3}-pip

If pip is installed and working you can use pip to upgrade pip.
sudo pip install -U pip
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

Return to “Python”

Who is online

Users browsing this forum: No registered users and 26 guests