I have created a virtualenv and installed SQLAlchemy in it: import works in python: But it does not work in bpython: Why can’t bpython find the package installed in the virtualenv, even though it is executed after source alchemy/bin/activate is called? Answer bpython must be installed in the virtualenv, otherwise the external, system-wide bpython is called: