Mac

V 2.X

在 mac 中,默认的 python 版本为:

Python 2.7.10 (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.

V 3.X

  • 安装
brew install python3
  • 使用

使用 python3 即可。

$ python3
Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
  • 卸载
$   brew uninstall python

参考资料

  • 卸载

https://blog.csdn.net/yilovexing/article/details/78750990