简体   繁体   English

如何更新我的 Mac 以使用最新版本的 Python?

[英]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.

相关问题 如何告诉我的 Mac 使用安装在我的计算机上的最新版本的 Python? - How do I tell my Mac to use the latest version of Python installed on my computer? 我的 Mac 上有两个 python 3 版本。 如何使用新版本和/删除旧版本? - I have two python 3 versions on my Mac. How do I use the new version and/remove the old one? Ubuntu 说 Python 是最新版本,但不是。 我如何更新它 - Ubuntu says Python is on its latest version when its not. How do I update it 你如何在覆盆子pi上更新到最新的python 3.5.1版本? - How do you update to the latest python 3.5.1 version on a raspberry pi? 如何让 matplotlib 实际更新到最新版本? - How do I get matplotlib to actually update to the latest version? 我如何在mac上重新安装python,但是版本3.2(最新版本)并且所有命令行都能正常工作 - How do I re-install python on the mac, but version 3.2 (latest) and have all the command line stuff work 如何使用 conda 更新到最新的 Python 版本? - How can I update to the latest Python version using conda? 如何在python脚本中使用蛋黄来获取特定软件包的最新版本? - How do I use yolk from within a python script to get the latest version for a specific package? 如何在Mac OS上更新Python并让RubyGems使用新版本? - How can I update Python on Mac OS and have RubyGems use the new version? Wing101 默认为 python 2.7,即使我的 Mac 上安装了最新版本 - Wing101 is defaulting to python 2.7 even though I have the latest version installed on my Mac
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM