Calvin Jones
Calvin Jones

Reputation: 367

Web2py import python modules

Hello I'm trying import a module import Image. I recieved this error <type 'exceptions.ImportError'> Cannot import module 'Image'

I looked for a solution and found this Install Python Module in local install of web2py

So "how can I drop modules in app/modules folder" so web2py will check there first when import something or if anyone knows a better solution then the provided solution please help.

Upvotes: 1

Views: 2084

Answers (1)

Anthony
Anthony

Reputation: 25536

If you are using the Windows or Mac web2py binary, they include their own Python interpreter, so they will not use your system's installed version of Python nor see any of its modules. If you have your own version of Python installed, you're better off running web2py from source, which is just as easy (just download and unzip -- run with the web2py.py file rather than web2py.exe or web2py.app).

Upvotes: 0

Related Questions