I installed python3.7 using:
brew install python@3.7
Then I did:
echo 'export PATH="/usr/local/opt/python@3.7/bin:$PATH"' >> /Users/sony/.bash_profile
export LDFLAGS="-L/usr/local/opt/python@3.7/lib"
When I do:
/usr/local/opt/python@3.7/bin/python3
I get:
Python 3.7.10 (default, Apr 27 2021, 08:48:55)
Which means it works but when I do:
python3.7
I get:
-bash: python3.7: command not found
Not sure what I missed here?