-1

Let me elaborate my problem clearly.

We installed python3.6 recently as below in one of our linux VM

yum install python36

entering python36 will invoke python3.6 interpreter. Now we want to install pip for this, we tried as below

python36 -m ensure-pip --default-pip

which resulted in invoking pip with pip command in a path (/usr/bin/pip) that comes before the 2.7 version's pip in the same machine (Env path) due to which we are explicitly calling 2.7's pip with path as /bin/pip

But we wanted to invoke pip as pip36 command, so the solution we wanted which should help us like, whenever we hit pip it should invoke 2.7's and whenever we invoke pip36 it should invoke 3.6's

NOTE: we do not want to change the PATH variable for this

shad0w_wa1k3r
  • 12,955
  • 8
  • 67
  • 90
Sai Koti
  • 147
  • 1
  • 2
  • 10

1 Answers1

0

Follow this manual.

Line below should do the work:

sudo yum install python36u-pip
Samuel
  • 3,631
  • 5
  • 37
  • 71