how to set python pip to pickup pyhon 3.6

55 views Asked by At

I have to set Python from 2.7 to 3.6 in Suse12 and have set the soft link. but "pip --version" gives the error "/usr/local/bin/pip" what do I have to set/configure for pip to pick up the Python 3.6 from the system

1

There are 1 answers

4
Sarthak On
  1. Firstly I would suggest try to update pip.
  2. If it still shows issues then you can check the pip version associated with Python 3.6 by running python3.6 -m pip --version
  3. Ensure that the python and pip soft links point to the Python 3.6 versions. If they do not point same you can create soft links like this ln -s /usr/bin/python3.6 /usr/bin/python and ln -s /usr/bin/pip3.6 /usr/bin/pip. Please update respective paths if required.
  4. Test pip to ensure its using python 3.6 pip --version