0

I'm using Mac OS Big Sur and Python IDLE 3.8.3

I started studying python recently so I don't know well about python

While studying about the library, I'm trying to learn sys

I m following the below steps -

  • So I programed python file name myargv on /Users/doit folder

  • And I go to terminal tab and I entered /Users/doit python3 myargv.py

  • But I m facing the below error - zsh:permission denied: /Users/doit

What can I do to solve this problem?

Nihal Sharma
  • 2,397
  • 11
  • 41
  • 57
MSS
  • 1
  • 1
  • 1

1 Answers1

0

Access the folder with cd and then run the python command:

cd path/to/file
python3 myargv.py

Or write the full path:

python3 path/to/file/myargv.py
frab
  • 1,162
  • 1
  • 4
  • 14