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.
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
--user flag, ie pip install --user rauth. It's a slightly confusingly named option for pip that tells it to install stuff in your home directory rather than trying to write to the global system libraries.pip install --user <your_username> rauth for anyone looking this up in the futureTo 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.
error: could not create '/usr/local/lib/python2.7/dist-packages/rauth': Permission deniedsudo pip install rauth, or consider creating a virtualenv instead.sudo:unkown user: root