# Check if Python is installed
python --version
# If Python is installed, the output will show the version
# If Python is not installed, you need to install it
# Get the path to the Python executable
which python
# Copy the path of the Python executable
# Open your terminal's configuration file (e.g., ~/.zshrc, ~/.bash_profile, ~/.bashrc)
# Add the following line to the file (replace "/path/to/python" with the copied path)
export PATH="/path/to/python:$PATH"
# Save and close the file
# Reload the terminal configuration
source ~/.zshrc # Replace with the appropriate file if different
# Now, you should be able to run Python without the command not found error
python --version