Python Forum
invoking python in Terminal - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: invoking python in Terminal (/thread-40597.html)



invoking python in Terminal - Euler - Aug-24-2023

I am new to python and I want to use the matlab2python converter to help me learn it. I installed Python 3.11.5 using the installer at:

https://www.python.org/ftp/python/3.11.5/python-3.11.5-macos11.pkg

After doing so, I was hoping to invoke python in the Terminal on macOS, but I get the error:

zsh: command not found: python

when I try anything with the command python.

What am I doing wrong?

Thank you!


RE: invoking python in Terminal - Pedroski55 - Aug-25-2023

I never has a computer with MacOS, so I can't speak from experience.

To try out code it's probably best to use an IDE. Python comes with it's own IDE, called Idle.

Here is a link on how to do that: LINKME


RE: invoking python in Terminal - perfringo - Aug-25-2023

try python3