Dealing with multiple Python versions?

1.7k Views Asked by At

I have a problem with my Pip version. I am trying out to install the pyDatalog package, which isn't supported by Anaconda.

   The following specifications were found to be in conflict:
  - pydatalog
  - python 3.5*

In my Ubuntu, I have two versions of Python (2.7 and Anaconda with 3.5). For Python 2.7 I don't even know whether or not Pip is installed.

How can I have two different versions of Pip for different versions of Python on one computer? Can I use one version of Pip for both version of Python?

1

There are 1 best solutions below

0
ge7600 On

Take a look at pyenv located in https://github.com/yyuu/pyenv/blob/master/README.md.

You can install multiple versions of python and pip.

The README has instructions for installing pyenv, installing wanted python versions and switching between them.