[英]Python permission denied problem on Mac os
I'm using Mac OS Big Sur and Python IDLE 3.8.3我正在使用 Mac OS Big Sur 和 Python IDLE 3.8.3
I started studying python recently so I don't know well about python最近开始学习python,所以对python不是很了解
While studying about the library, I'm trying to learn sys
在研究图书馆的同时,我正在尝试学习sys
I m following the below steps -我正在执行以下步骤 -
So I programed python file name myargv
on / Users/doit
folder所以我在 / Users/doit
doit 文件夹上编写了 python 文件名myargv
And I go to terminal tab and I entered /Users/doit python3 myargv.py
我 go 到终端选项卡,然后输入/Users/doit python3 myargv.py
But I m facing the below error - zsh:permission denied: /Users/doit
但我面临以下错误 - zsh:permission denied: /Users/doit
What can I do to solve this problem?我该怎么做才能解决这个问题?
Access the folder with cd
and then run the python command:使用cd
访问该文件夹,然后运行 python 命令:
cd path/to/file
python3 myargv.py
Or write the full path:或者写完整路径:
python3 path/to/file/myargv.py
I'm using Mac OS Big Sur and Python IDLE 3.8.3我正在使用 Mac OS Big Sur 和 Python IDLE 3.8.3
I started studying python recently so I don't know well about python我最近开始学习 python 所以我不太了解 python
While studying about the library, I'm trying to learn sys
在学习图书馆的同时,我正在尝试学习sys
I m following the below steps -我正在按照以下步骤操作 -
So I programed python file name myargv
on / Users/doit
folder所以我在 / Users/doit
doit 文件夹上编写了 python 文件名myargv
And I go to terminal tab and I entered /Users/doit python3 myargv.py
我 go 到终端选项卡,我输入/Users/doit python3 myargv.py
But I m facing the below error - zsh:permission denied: /Users/doit
但我面临以下错误 - zsh:permission denied: /Users/doit
What can I do to solve this problem?我能做些什么来解决这个问题?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.