Forums

Virtual environment in Python console

I've set up a virtual environment for my project, and installed a few additional packages. These installed ok, and I can see them in the file listing of my virtual environment. However, when I open a python console and try to import any of these new packages, I get an error message that they are not found. I'm assuming that the python console is not running in my virtual environment. How do I tell it to use the correct environment? It's straightforward in the bash console, but not clear how to do it in the python one.

The Python consoles just launch Python outside any virtualenv -- to start one inside a virtualenv, just activate the environment in Bash and run python.