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
Re: why does python-pip require an older version of python?
You can also install pip with python-setuptools (which includes the 'easy_install' command):
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
sudo apt-get install python-setuptools
sudo easy_install pip
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
Re: why does python-pip require an older version of python?
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?
Re: why does python-pip require an older version of python?
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. 
http://cae2100.wordpress.com

http://cae2100.wordpress.com
-
- Posts: 68
- Joined: Wed Nov 25, 2015 4:43 am
Re: why does python-pip require an older version of python?
May i know how to reinstalling pip? thanks
- DougieLawson
- Posts: 40486
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: why does python-pip require an older version of python?
If it's been completely removedShunJianLee wrote:May i know how to reinstalling pip? thanks
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
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.