I’m new to web development and have been following the instructions here to get a basic Django site going. I want to start directly with Python version 3, so I’ve also followed the steps in the “Installing a custom Python version” section of that page. Yet when time comes to check the version of Python being used, it shows I’m still using the default; i.e.
python --version will report
Python 2.7.3 and
which python will report
How do I actually use python 3?
Now, I ran into something similar when following the Django tutorial locally. I’m on a Mac OS X system where the included python version is 2.7. After installing python 3, I had to call it with
python3 in order to actually get version 3 behavior. My local solution was to setup an alias in my .bashrc, as described here. If I do something similar with my .bash* files on the server, won’t that only be in effect when I’m logged in via SSH? Will it actually use python 3 when time comes to serve the site?