homebrew - Homebrew 安装后尝试从终​​端运行 Python 3.10

标签 homebrew macos-monterey apple-silicon python-3.10

我使用了 Homebrew 命令 brew install <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fc8c8588949392bccfd2cdcc" rel="noreferrer noopener nofollow">[email protected]</a>在我的 Mac 上安装 Python3.10。 但是,当我在终端中输入 python然后按 Tab,它只给我位于/usr/bin/中的 Python 3 的选项 如何输入位于/opt/homebrew/Cellar/的 3.10 解释器

最佳答案

正在运行brew info <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c0b0b9b4a8afae80f3eef1f0" rel="noreferrer noopener nofollow">[email protected]</a>将为您提供问题的解决方案:

If you need to have <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d1a1a8a5b9bebf91e2ffe0e1" rel="noreferrer noopener nofollow">[email protected]</a> first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d3d34392522230d7e637c7d" rel="noreferrer noopener nofollow">[email protected]</a>/bin:$PATH"' >> ~/.zshrc

关于homebrew - Homebrew 安装后尝试从终​​端运行 Python 3.10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72148538/

相关文章:

macports 的 Homebrew 版本 `port select --set`

imagemagick - 无法在 Mountain Lion 上安装 Imagemagick

macos - 检测应用程序进入后台并返回前台

git - 将 VSCode 设置为我的 Mac M1 的默认 Git 编辑器

java - 如何在 Apple Silicon M1 Mac 上安装 Azul JDK 16?

electron - 使用Electronic Packager创建Mac mini M1支持构建

homebrew - 如何使用 Homebrew 软件查看已安装软件的安装说明?

python - Pip 安装 pygraphviz 失败 : Failed building wheel for pygraphviz

ios - 无法在 macOS Monterey 版本 12.0 Beta 中安装 Cocoapods - Xcode 13.0(13A233)

bash - 在 MacOS Mojave 中找不到 ntpdate 命令