[英]Installing Python3 on MacOS
I installed Python3 on macOS. 我在macOS上安装了Python3。
Normally all of my python versions are stored at /System/Library/Frameworks/Python.framework 通常我所有的python版本都存储在/System/Library/Frameworks/Python.framework
but python3 copied at /Library/Frameworks/Python.framework 但是python3复制到/Library/Frameworks/Python.framework
how can i change or use python3 ? 我如何更改或使用python3?
You can invoke it from terminal like any other python version. 您可以像其他任何python版本一样从终端调用它。
$ python3
Python 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:25:50)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Install / update Command Line Tools : 安装/更新命令行工具 :
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/Current/bin/python3
Python 3.7.3 (default, May 24 2019, 18:21:06)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.