captainhook
Basic Pleskian
Hi all,
I have the following script for example:
The output there shows '2.7.5'. How can I get scripts running in Plesk to use Python3.6?
edit: ok it looks like it uses the version of python mod_python is built with. There was some work to get python 3 support for mod_python (mod_python 3.5.0 (with support for Python 3!) available for pre-release testing. · Issue #9 · grisha/mod_python), but I'm not sure that's complete or working yet.
I may just need to spin up a separate VM to get this running.
I have the following script for example:
Code:
#!/usr/bin/python3.6
import platform
print('Content-Type: text/plain')
print('')
print('Hello, world!')
print(platform.python_version())
The output there shows '2.7.5'. How can I get scripts running in Plesk to use Python3.6?
edit: ok it looks like it uses the version of python mod_python is built with. There was some work to get python 3 support for mod_python (mod_python 3.5.0 (with support for Python 3!) available for pre-release testing. · Issue #9 · grisha/mod_python), but I'm not sure that's complete or working yet.
I may just need to spin up a separate VM to get this running.
Last edited: