TAGS :Viewed: 24 - Published at: a few seconds ago

[ Import Error in PythonAnywhere ]

I am using the rauth library in my Flask app. The error log shows the error

ImportError: No module named rauth. 

How to deal with this problem.

Answer 1


According to the documentation of PythonAnywhere on how to install custom packages, you have to instruct pip to install into your home directory:

pip install --user rauth

Answer 2


To install rauth please do

python -m pip install rauth

If its giving permission denied error while installing then It seems the user as which you are logged in to the system has no permission to access the file. Please login to system as a user who has all permission to acess files i mean to say login as the system's main admin and then try.