2

I've installed Python 3.3 alongside Python 2.75 on my Ubuntu machine. The problem is that easy_install gets packages for the default, 2.75 version only, e.g:

easy_install pymongo

$ python
Python 2.7.4 (default, Apr 19 2013, 18:28:01) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymongo
>>>

But:

$ python3.3
Python 3.3.1 (default, Apr 17 2013, 22:30:32) 
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymongo
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>

ImportError: No module named 'pymongo'

How can I install PyPi packages for the Python 3.3 installation?

4
  • 1
    I'd suggest you to use pip over easy_install. Commented Oct 13, 2013 at 20:09
  • @hcwhsa What makes it better? Commented Oct 14, 2013 at 6:57
  • Have you read the answers on the linked question? Commented Oct 14, 2013 at 7:16
  • Sorry, thought they were separate links to pip and easy_install sites. Will read, thanks. Commented Oct 14, 2013 at 9:36

1 Answer 1

3

You need easy_install3. In apt-get you get it by

apt-get install python3-setuptools
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.