Python 2.7 is no longer available on Mac Catalina, but I need it to be my default python to get Cocos Creator to build iOS apps correctly. I tried installing Python, and setting the alias as follows, but while typing python
correctly runs python 2.7 on the terminal, it reverts to python 3.8.5 the moment I close the terminal (and Cocos still doesnt build correctly). My python 3 is installed using anaconda
Is there a way to make python 2.7 default on Catalina?
https://stackoverflow.com/questions/49704364/make-python3-as-my-default-python-on-mac
Open Terminal
cd
nano ~/.bashrc
alias python=python2 (Add this line on top of .bashrc file)
Press ctr+o (To save the file)
Press Enter
Press ctr+x (To exit the file)
source ~/.bashrc OR . ~/.bashrc (To refresh the bashrc file)