Install Python Module in local install of web2py

后端 未结 3 1331
被撕碎了的回忆
被撕碎了的回忆 2021-02-15 11:37

I am running web2py on a Windows machine.

I\'m working on an application, but it keeps erroring because it says the module I\'m trying to use isn\'t installed. It is how

3条回答
  •  伪装坚强ぢ
    2021-02-15 11:58

    web2py recognize any module you have in your local Python installation, unless you have a module with the same name under /modules folder of your application.

    If you are on windows I do not recommend the use of .exe version of web2py (this version is only for studies) and it has a self contained isolated Python interpreter.

    Make sure you are using source version of web2py and Python 2.5+ on your windows.

    web2py should import any module from your Python path, also you can drop modules in app/modules folder ], then web2py will check there first when import something.

提交回复
热议问题