Created alias through terminal for python

Viewed 12

After downloading python from the website, I found I couldn't access it by typing "python" in terminal.

I found this website: https://fjolt.com/article/python-command-not-found which provided this solution.

echo "alias python=/usr/bin/python3" >> ~/.zshrc

This solution worked, and now typing python in terminal allows me to access the REPL shell.

  1. What exactly did I do with the original terminal command?
  2. I heard this is unintuitive and clunky; and instead should download python from home-brew which would automatically install Python in a directory that is accessible by the terminal. Is this true?
  3. If so, how would I undo the echo "alias command I put in terminal and download python properly through home-brew.
0 Answers
Related