MAC OS Monterey Python 构建错误:Python 意外退出

发布于 2025-01-15 17:18:36 字数 153 浏览 2 评论 0原文

我如何克服这个构建错误?我尝试将构建系统设置为 python 和 python3,但错误仍然存​​在。 Sublime text 在构建时抛出错误。

How do I get past this build error? I have tried setting my build system to both python as well as python3 but the error is quite persistent. Sublime text throwing an error while building.

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

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

发布评论

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

评论(1

深居我梦 2025-01-22 17:18:36

我意识到我同时安装了 python 3.7 和 3.8,并且必须更改路径。这对我有用。我之前安装了 anaconda,它附带了 python 3.7,并且还使用 Brew 手动安装了 3.8。

which python3.7

这给了我 3.7 的路径

which python3.8
/Users/Marc/Environments/tiktok/bin/python3.8

这给了我 3.8 的路径

接下来我复制了 3.8 的路径并将其粘贴到

PATH="/Users/Marc/Environments/tiktok/bin/python3.8" 
export PATH

重新启动终端中。

I realised that I had both python 3.7 and 3.8 installed and had to change the path. It worked for me. I had previously installed anaconda which came with python 3.7 and also had manually installed 3.8 using Brew.

which python3.7

This gave me the path for 3.7

which python3.8
/Users/Marc/Environments/tiktok/bin/python3.8

This gave me the path for 3.8

Next up I copied the path from 3.8 and pasted it into

PATH="/Users/Marc/Environments/tiktok/bin/python3.8" 
export PATH

Restart your terminal.

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