-1

I'm trying to run Python on Terminal and typed in ~ $python but I get this error message

~ $python3
zsh: permission denied: /Users/myName
  • I dragged Python folder in the Terminal and I'm denied
  • I also checked the permission of the folder, I already changed it to read & write
  • I searched on some similar questions here but still no idea what to do
Lenka
  • 57
  • 5
  • Thank you @lenka, I'm still trying to run but failing. Still not getting what to do – Gelay Chua Aug 01 '23 at 10:18
  • I suspect you're reading a tutorial that uses "~ $" to indicate the shell's prompt (what the shell prints to say "I'm ready for a command, enter it here:"). Your prompt probably looks quite a bit different and probably ends with a "%". That doesn't matter, what matters is that you don't enter that placeholder prompt as part of the command, *only the part after it* (in this case, "python3"). – Gordon Davisson Aug 01 '23 at 10:40
  • Hi @GordonDavisson, yes yes. Thank you for the insight, super new in this game and I appreciate all your help. – Gelay Chua Aug 01 '23 at 10:50

1 Answers1

0

The shell will expand ~ to the name of your home directory and probably $python3 to an empty string (since there is probably no shell variable named python3), so the whole thing is equivalent to just typing the name of your home directory, which obviously cannot be executed as a command.

You probably want to type just python3.

Ture Pålsson
  • 6,088
  • 2
  • 12
  • 15
  • Woooow, thank you so much!!! I almost given up but thank you to your answer, I already accessed it. I will study more :) – Gelay Chua Aug 01 '23 at 10:43