简体   繁体   English

PythonAnywhere中的导入错误

[英]Import Error in PythonAnywhere

I am using the rauth library in my Flask app. 我在Flask应用程序中使用rauth库。 The error log shows the error 错误日志显示错误

ImportError: No module named rauth. 

How to deal with this problem. 如何处理这个问题。

根据PythonAnywhere关于如何安装自定义包文档 ,您必须指示pip安装到您的主目录:

pip install --user rauth

To install rauth please do 要安装rauth,请做

python -m pip install rauth python -m pip安装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. 请以拥有访问文件的所有权限的用户身份登录系统,我的意思是说登录为系统的主管理员,然后尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM