I have installed a Python module to python 2.7 on my space. I can import the module if I start python with asked 07 Mar '13, 12:12 guss |
When you are running the script you can specify the python version number by appending the python command with the version. For example:
From cron you need to use the full path to the executable:
answered 07 Mar '13, 12:34 timg ♦♦ I should have specified — I mean when running from the browser. For example if someone navigates to example.com/blah.py it should use python2.7.
(07 Mar '13, 12:53)
guss
Using the shebang #!/usr/local/bin/python2.7 should set to python2.7. You can also try #! /usr/bin/env python2.7. If neither work, Please open a ticket at our support site, and we'll help you find a solution.
(07 Mar '13, 13:12)
timg ♦♦
|