Forums

A Python 3.6 Web APP

Hi, I added a new Python 3.6 Web App, but the Bash console is Python 2.7.6. So how can I use Python 3.6 in Bash console, please?

Thank you.

In bash, python on its own is an alias for python2.7. To run other versions, just use an explicit version number, so: python3.6.

I get it. It worked! Thank you.

But one more question: Then how can I use the Django 1.11?

Thank you.

We've got a help page that should explain how to do that.

Ok. I was thinking maybe there is a way avoid using VirtualEnv.

I will get back to virtualenv then.

Thank you.

Yes, if you want to use a different version of Django to the system-wide installed version, then a virtualenv is the best solution.

(Some other packages can be upgraded in-place without needing a virtualenv, but Django specifically gets confused if you do that.)