[英]How do I update my Mac to use the latest version of Python?
I downloaded the latest version of python, but when I go into the terminal and type the following Command:我下载了最新版本的 python,但是当我在终端中输入 go 并输入以下命令时:
Python --version
It returns Python 2.7.10它返回 Python 2.7.10
I have looked at tons of online tutorials and cannot figure out how to get my Mac to actually use the latest version of python that I installed.我查看了大量在线教程,但无法弄清楚如何让我的 Mac 真正使用我安装的最新版本的 python。
Look into installing Homebrew.研究安装 Homebrew。
It is a great package manager for macOS and does let you install new versions of python using its brew install
command.它是适用于 macOS 的出色 package 管理器,它允许您使用其
brew install
命令安装新版本的 python。
You can look at the installation details here: https://docs.brew.sh/Installation您可以在此处查看安装详细信息: https://docs.brew.sh/Installation
brew install python3
python3 --version
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.