任何将 macOS 更新到 Monterey 12.3 的人都会发现他们突然不再拥有系统提供的 Python 2。 这样做的原因是 Apple 删除了系统提供的 Python 2 安装( 详情)。 因此,解决方法/解决方案是使用 pyenv 安装Python 2.7(或您需要的任何其他特定版本)。 安装pyenv 和brew 以管理不同的 Python 版本: brew install pyenv 列...
### 安装`atom-python-run`包 1. 打开Atom编辑器,点击顶部菜单栏中的“File”>“Settings”进入设置界面。 2. 在设置界面左侧选择“Install”,在搜索框中输入`atom-python-run`。 3. 在搜索结果中找到`atom-python-run`包,点击“Install”按钮进行安装。 4. 安装完成后,重启Atom编辑器使更改生效。 ### 配...
Step #1: Install and run Atom for Python The first step is to install and set up the atom package for Python. Atom is free and open-source. You can get the installation package on Atom’s official website. Atom is cross-platform and supports many packages and languages. It can work on...
Learn how to run Python in Atom with this comprehensive guide. Step-by-step instructions and tips for setting up the environment efficiently.
echo "alias python=/usr/bin/python3" >> ~/.zshrc 在终端别名 python 与python3。 问题解决了。据我所知,从 12.3 开始,macOS 中不再预装 python 2.x,因此出现错误。我仍然觉得很奇怪,尽管 atom-python-run 会调用 python 而不是 python3 尽管有设置。