Forums

Module not available in web app

Hi,

I've installed a module (pika) with pip install --user, and it works fine when I use it standalone. When I use it in a Flask web app, I get:

ImportError: No module named 'pika'

Do you know why that is? Do I need to use a VirtualEnv?

Thanks Robert

Are you sure you used the pip command appropriate for the version of Python your web app uses, eg. pip3.4 for Python 3.4?

Ah. Rookie error.

:-)