skip to Main Content

Hello Im a beginner in coding python , totally new on this, my terminal window shows the "zsh:command not found" error, it also shows the "python not found" error , appreciate any help I can get in this , Im running MacOs Monterey the latest version

I have tried installing extensions so far nothing

2

Answers


  1. Here are some things you can try.

    1. Install latest version of python for your system from the official python repository https://www.python.org/downloads/

    2. Restart Terminal/Vscode where you are attempting to run python

    Login or Signup to reply.
  2. On mac as far as I remember there is only python3 alias, so to use python you type python3. You can also add other interpreter by adding line like

    # Change path to your interpreter
    PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin:${PATH}" 
    export PATH
    

    to your .zshrc file(open for example with nano ~/.zshrc)

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search