简体   繁体   English

如何在web2py pythonanywhere中导入外部模块/库

[英]How to import external module/library in web2py pythonanywhere

I am a beginner and have been using web2py on the online webapp form in pythonanywhere. 我是一个初学者,一直在pythonanywhere上的在线webapp表单上使用web2py。 I wish to use the googlemaps api however I'm not sure how to install the modules. 我希望使用googlemaps api,但不确定如何安装模块。 On my local python I just installed it through terminal, however I am not sure how to do it on pythonanywhere online. 在我的本地python上,我只是通过终端安装了它,但是我不确定如何在pythonanywhere在线上进行安装。 Any help would be appreciated :D. 任何帮助将不胜感激:D。

This help page explains how to install things on PythonAnywhere. 该帮助页面说明了如何在PythonAnywhere上安装东西。 Basically, you'll either need to use the --user flag with pip , or a virtualenv. 基本上,您需要将--user标志用于pip或virtualenv。

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

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