Python vs Python3
I was confused because when I type
After research, I realized that mutliple versions of Python can be installed and exist simultaneously. And the symbolic link for python on my computer was directed to
python --version
in terminal,
it returned Python 2.7.10
but I used python3
for django.
After research, I realized that mutliple versions of Python can be installed and exist simultaneously. And the symbolic link for python on my computer was directed to
Python 2.7.10
, which is why when I had to type python3
instead of python
in order to use the latest Python.
So I installed newest python by Homebrew
brew install python
set symlink from python to python3
ls -l -f /usr/local/bin/python3 /usr/local/bin/python
assigned the command 'python' to 'python3'
alias python=python3