Python modules for Python 3 on Linux (Ubuntu)

How can I install modules like CherryPy or SQLAlchemy on Linux so that they will be available in Python3 and not in the default Python2.7?

I have installed CherryPy successfully but I can import it only in 2.7 (launched with $python) while in 3.4 (launched with $python3) says "No module named cherrypy". I found on the net a command:

sudo apt-get install subversion python-mako python-simplejson python-cherrypy3 graphviz

but it didn't solved the problem.
LVL 27
Who is Participating?
Python3 modules start with python3-
So yours is python3-cherrypy3
Swadhin RaySenior Technical Engineer Commented:
Can you try installing under python3:

sudo apt-get install subversion python-cherrypy3

Open in new window

Then try to import and check if you are able to do it.
Swadhin RaySenior Technical Engineer Commented:
You can also find some installation under the below link:
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

ZberteocAuthor Commented:
@gheist:  That did it. Thanks!

Do you know how can I install "routes" for Cherrypy for Python3?
apt-cache search python3- | grep routes
Alternative is to use easy_install or build package (again take care it picks up correct python)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.