适用于OS X El Capitan的Python 3.5 [英] Python 3.5 for OS X El Capitan

查看:103
本文介绍了适用于OS X El Capitan的Python 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OS X El Capitan,默认的Python版本是2.7.10.

I am using OS X El Capitan and my default Python version is 2.7.10.

如何将默认版本更改为Python 3.5以供终端使用?

How can I change the default version to Python 3.5 for Terminal use?

推荐答案

El Capitan与2.7捆绑在一起并在内部使用,因此最好不要使用它.

El Capitan comes bundled with 2.7 and is used internally, so its best you don't do anything with it.

最简单的方法是下载 Mac安装程序

https://www.python.org/ftp/python/3.5.0/python-3.5.0-macosx10.6.pkg

按照GUI中的步骤进行安装,转到终端并启动python类型,

Install it by following the steps in the GUI, go to terminal and to start python type,

python3

对于酿造,请参阅文档

在Mac OS X上安装Python

它具有逐步指南,可帮助您完成安装python 3.x的整个过程

It has a step-by-step guide to help you through the entire process of installing python 3.x

致谢.

这篇关于适用于OS X El Capitan的Python 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆