Install Python Module in local install of web2py

后端 未结 3 1322
被撕碎了的回忆
被撕碎了的回忆 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:53

    If you are using the Windows binary version (i.e., web2py.exe), note that it includes its own Python interpreter, which means it will not use your installed version of Python and will therefore not see any of your installed modules. You can put Python modules in the /web2py/site-packages folder (which is created the first time you run the binary version), but the better approach is probably just to run the source code version of web2py. It's just as easy -- simply download and unzip the source code package, and instead of clicking on web2py.exe, you click on web2py.py (or at a command prompt, cd to the web2py directory and enter python web2py.py).

提交回复
热议问题