为什么有两个叫“Python”?和“Python 启动器”分别?

发布于 2025-01-17 14:23:28 字数 556 浏览 2 评论 0原文

我使用的是 Mac 操作系统。为什么其中两个是“Python”,而上面的另一个是“Python launcher”。

图片 - (file:///Users/Buddhikawijegunarathna/Desktop/Scr​​eenshot%202022-03-28%20at%203.22.27%20PM.png)

有什么区别?

“Python启动器”位于Applications/python 3.10/Python启动器中 (我当前使用的 python 版本是 3.11)

“python”位于 Macintosh HD/library/frameworks/python.frameworks/resources/python 应用程序中,

我无法运行使用模块的 python 文件“Python 启动器”,但可以使用“Python”应用程序。

我可以使用“Python启动器”从任何地方运行python文件,可能是桌面或文件夹或任何东西,但在“Python”应用程序中,它要么在桌面或特定位置运行,而严格不在文件夹内运行。 (如果我运行,它会显示错误,因为找不到目录。)

I am on a Mac OS. Why are there two of them "Python" and the other one on top is 'Python launcher’.

image - (file:///Users/Buddhikawijegunarathna/Desktop/Screenshot%202022-03-28%20at%203.22.27%20PM.png)

What is the difference?

"Python launcher" is in Applications/python 3.10/Python launcher
(the current version I use of python is 3.11)

"python" is in the Macintosh HD/library/frameworks/python.frameworks/resources/python app

I can't run python files that use modules using 'Python launcher' but can using the ‘Python' app.

And I can run a python file from anywhere, maybe desktop or in a folder or anything by using 'Python launcher’, but in ‘Python' app it either works in the desktop or a specific place, and strictly not inside folders. (if I run, it's displaying an error as the directory cannot be found.)

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

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

发布评论

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

评论(1

十雾 2025-01-24 14:23:28

Python是一种计算机语言,也意味着整个Python系统的整体;

Python Launcher是一个可执行文件,它启动Python编译器&使用Python时功能。

Python is a computer language, also means an overall of the whole Python system;

While Python Launcher is an executable file which launches Python compiler & functions when you use Python.

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