There was a problem loading the comments.

How can I use Python 3.6+ on my hosting?

Support Portal  »  Knowledgebase  »  Viewing Article

Similar to PHP, Eco Web Hosting run multiple versions of Python side-by-side on the server, to select the version to use there are two options.

If you have a shebang line in your .py files you can specify the version to use when adding the interpreter (eg. using /usr/bin/python will give you Python 2.7.5 whilst /usr/bin/python3 will give you 3.6.8).

If you don't specify this in the script you do the same with the file extension when naming the files, a file with a .py extension will run Python 2.7.5 while .py3 will run using Python 3.6.8.

Share via
Did you find this article useful?  

Related Articles

© Eco Web Hosting