• 欢迎访问小贝笔记网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入小贝笔记 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏小贝笔记吧

Mac 安装Python3

Python 小贝 6年前 (2018-02-03) 3035次浏览 0个评论

 

 

默认Mac电脑上安装的Python版本是2.X,众所周知Python3.X和Python2.X互不兼容。默认Mac系统已经安装Python2.7,如果使用Python3.x需要手动安装

一、查看默认版本

localhost:~ sun$ python
Python <mark>2.7.10</mark> (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

二、安装Python3.x

1.登录Python官网

www.python.org

2.选择下载Python3.x

3.安装Python3.x,Python3.x下载完后为.pkg文件,安装方法和安装其他应用软件一样。

 

三、查看安装后版本localhost:~ sun$ python3

localhost:~ sun$ python3
Python <mark>3.6.4</mark> (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

 


小贝笔记 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Mac 安装Python3
喜欢 (8)

您必须 登录 才能发表评论!