mac安装python3——使用brew管理

使用brew管理:
1.brew下载:官网https://brew.sh/
brew下载参考博客
2.mac终端:
检查自己python版本:

$ python
Python 2.7.10 (default, Feb 22 2019, 21:55:15) 
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
$exit()

使用brew安装:

 $ brew install python3

检查是否安装:

$ python3
Python 3.7.6 (default, Dec 30 2019, 19:38:28) 
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
发布了73 篇原创文章 · 获赞 24 · 访问量 2564

猜你喜欢

转载自blog.csdn.net/weixin_44943394/article/details/104244280
今日推荐