Forums

Help with pip/eve

I'm trying to build a simple REST-service and therefore I installed eve with that command in mysite:

$ pip install eve --user

In my *.py I try

from eve import Eve

app = Eve()
app.run()

but that leads to

Traceback (most recent call last):
  File "/home/<user>/mysite/flask_app.py", line 12, in <module>
    from eve import Eve
ModuleNotFoundError: No module named 'eve'

As you can see, I'm pretty new to all that stuff... Any help appreciated! THX

make sure that the pip install is installing to the correct python version, and that your webapp is running with the correct python version.

Should be same python version on both sides - is there no need to tell the webapp the path of eve?

If eve is installed in the correct version of Python, then there is no need to tell the web app the path to eve. If it's not installed for the correct version of Python, then it will not work.