Python 3.4 OS X 10.10 中没有 pythonw? [英] No pythonw in Python 3.4 OS X 10.10?

查看:56
本文介绍了Python 3.4 OS X 10.10 中没有 pythonw?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 OS X 10.10 上的 python 从默认安装 2.7 更新到最新的 3.4.我正在按照 this 教程替换 python 框架并更新所有 /usr/bin/by*** 二进制文件.一切都很顺利,直到我注意到 3.4 版本中不存在 pythonw 二进制文件.这是我可以忽略的东西吗?pythonwpython 统一了吗?

I am updating python on OS X 10.10 form the default installation 2.7 to the latest 3.4. I am following this tutorial to replace the python framework and update all the /usr/bin/by*** binaries. It all goes well until I notice that no pythonw binary exists in the 3.4 version. Is this something I can just ignore? Has pythonw been unified with python?

推荐答案

根据 https://docs.python.org/3/using/mac.html:"4.1.2. 使用 GUI 运行脚本对于旧版本的 Python,您需要注意一个 Mac OS X 怪癖:与 Aqua 窗口管理器对话的程序(换句话说,任何具有 GUI 的程序)需要以特殊方式运行.使用 pythonw 而不是 python 来启动这样的脚本.

According python 3.4.3 in https://docs.python.org/3/using/mac.html: "4.1.2. Running scripts with a GUI With older versions of Python, there is one Mac OS X quirk that you need to be aware of: programs that talk to the Aqua window manager (in other words, anything that has a GUI) need to be run in a special way. Use pythonw instead of python to start such scripts.

在 Python 3.4 中,您可以使用 python 或 pythonw."

With Python 3.4, you can use either python or pythonw."

我想这就是 3.4.3 中没有 pythonw 的原因.

I guess that's the reason why there's no pythonw in 3.4.3.

您可以删除 usr/bin/pythonw 或将其链接到 python3 或您喜欢的旧版本.

You can either delete the usr/bin/pythonw or link it to the python3, or older version you like.

这篇关于Python 3.4 OS X 10.10 中没有 pythonw?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆