我可以更改权限

发布于 2025-01-27 06:19:10 字数 759 浏览 0 评论 0原文

所以我的“代码”。命令不起作用。我发现我看到的错误

/usr/local/bin/code2: line 6: python: command not found
/usr/local/bin/code2: line 10: ./MacOS/Electron: No such file or directory

是我只需要将python更改为python3code> code file file in /usr/usr/local/bin中。除非我更改文件,否则我无法通过更改保存。我遇到各种错误,告诉我我没有许可来更改它。因此,我查找如何更改它,然后说单击在文件上获取信息,然后更改共享和权限部分中的权限。但是我的获取信息没有共享和权限部分!

我该怎么办?

PS:我意识到,如果我在整个bin目录上进行获取信息,我可以看到权限。我做到了,以便每个人都可以阅读&写。除了我仍然无法保存代码文件的更改版本。我仍然不知道该怎么办。

So my "code ." command doesn't work. I get the error

/usr/local/bin/code2: line 6: python: command not found
/usr/local/bin/code2: line 10: ./MacOS/Electron: No such file or directory

I saw that I just have to change python to python3 in the code file in /usr/local/bin. Except when I change the file, I'm unable to save it with the change. I get all sorts of errors telling me I don't have permission to change it. So then I look up how to change it, and it says to click on get info on the file, and then change the permissions in the sharing and permissions section. But my get info doesn't HAVE a sharing and permissions section!

What do I do?

PS: I realized I can see permissions if I do get info on the whole bin directory. I made it so everyone can read & write. Except I still can't save the altered version of the code file. I still don't know what to do anymore.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晨光如昨 2025-02-03 06:19:10

好的,我仍然不知道如何保存code文件的编辑版本,但这是我现在如何解决的。

brew install python
ln -s /usr/local/bin/python3 /usr/local/bin/python

现在,我可以使用代码。,但我仍然对我的计算机感到不安,因为我不与我合作。

Ok I still have no idea how to save an edited version of the code file, but here is how I got around it for now.

brew install python
ln -s /usr/local/bin/python3 /usr/local/bin/python

Now I can use code . but I'm still very upset with my computer for not cooperating with me. ????

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文