Python Forum
Issue with 2 version of python (2.6.6 and 2.7) with pip
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with 2 version of python (2.6.6 and 2.7) with pip
#1
I have default python version 2.6.6 and pip is working with that. But when I installed python2.7, it was installed in different path( /usr/local/bin/python2.7). My main concern is pip is not working with 2.7 and getting error No module named pip. Is it possible to install separate pip for 2.7 or we can use existing pip with 2.7. Please suggest.

[jack@server ~]$ python --version
Python 2.6.6
[jack@server ~]$ which python
/usr/bin/python
[jack@server ~]$ which pip
/usr/bin/pip
[jack@server ~]$ which python2.7
/usr/local/bin/python2.7
[jack@server ~]$ python2.7 --version
Python 2.7
[jack@server ~]$ sudo python2.7 -m pip install pymongo
[sudo] password for jack:
/usr/local/bin/python2.7: No module named pip
Reply
#2
neither 2.6 nor 2.7 are supported any longer, you can still find some packages for 2.7 in pypi.org.
version 2.7.9 was first to automatically install pip.
older versions used EasyInstall, part of setuptools docs: https://setuptools.readthedocs.io/en/lat...stall.html
why not upgrade?
current python version is 3.8.2
Reply
#3
How can I uninstall current python2.7 and how to install automatically 2.7.9 with pip? Kindly suggest
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Query on choosing Python 3.8.6 version sureshnagarajan 0 1,808 Feb-16-2021, 05:30 AM
Last Post: sureshnagarajan
  Which Python Version? muzikman 15 5,196 Jan-19-2021, 02:16 PM
Last Post: muzikman
  Python/winrt support for python 3.8 version pbvinoth 2 3,704 Jul-08-2020, 02:03 PM
Last Post: snippsat
  Default python version on Windows (3.6.x vs 3.6.y) gramakri 1 2,462 May-04-2019, 10:36 PM
Last Post: snippsat
  Old Python-version used by IDLE GeNoS 7 4,239 Apr-13-2019, 08:04 PM
Last Post: Gribouillis
  Trouble installing a old version of python - 3.4.1 alex8obrien 2 2,792 Apr-09-2019, 06:28 AM
Last Post: alex8obrien
  a special version of the python command Skaperen 6 4,150 Apr-06-2019, 02:25 PM
Last Post: Gribouillis
  Distributing custom version of Python touc82 1 2,095 Mar-23-2019, 03:23 PM
Last Post: Larz60+
  Understanding Python version releases venami 3 3,133 Aug-24-2018, 09:56 PM
Last Post: venami
  Updating Python on Mac OS X (version 10.12.6) dl423 2 4,712 Jul-26-2018, 09:30 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020