1

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.

padfoot27
  • 517
  • 9
  • 13

2 Answers2

2

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
Daniel Hepper
  • 28,981
  • 10
  • 72
  • 75
  • 1
    PythonAnywhere dev here. You don't actually need your username on that command line -- just the `--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. – Giles Thomas Apr 09 '15 at 17:42
  • 1
    @GilesThomas thanks for the clarification, that's what you get for just skimming the docs. I updated my answer from original `pip install --user rauth` for anyone looking this up in the future – Daniel Hepper Apr 10 '15 at 09:06
1

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.

Chiyaan Suraj
  • 1,021
  • 2
  • 13
  • 27