0

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?

10
  • in general i have pip only for anaconda, but it doesn't work for python 2.7 Commented Oct 2, 2016 at 16:52
  • you can try 'whereis python 2.7' it should shows where is python installed. Also as far asi remember pip supports command like 'pip-2.7 command' Commented Oct 2, 2016 at 16:54
  • when i wrote this i got: pip2.7 Traceback (most recent call last): File "/usr/local/bin/pip2.7", line 9, in <module> load_entry_point('pip==7.1.0', 'console_scripts', 'pip2.7')() File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 558, in load_entry_point File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2682, in load_entry_point File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2355, in load File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2361, in resolve ImportError: No module named pip Commented Oct 2, 2016 at 16:56
  • Sorry my fault i forget syntax. Correct command "pip2.7 command" as you can see in stacktrace "/usr/local/bin/pip2.7". For python 3.5 correct command is "pip3.5 command". This is two different versions of pip. Commented Oct 2, 2016 at 17:06
  • older Python2 did not install pip and you have to do it on your own - on Ubuntu use apt-get or apt - sudo apt-get install python-pip Commented Oct 2, 2016 at 17:06

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.