MAC 安装Python3.7
- 2020 年 12 月 19 日
- 笔记
查看下python版本
macosdeMacBook:Versions macos$ cd /System/Library/Frameworks/Python.framework/Versions/
macosdeMacBook:Versions macos$ ls
2.3 2.5 2.6 2.7 Current
macosdeMacBook:Versions macos$ python -version
Unknown option: -e
usage: python [option] … [-c cmd | -m mod | file | -] [arg] …
Try `python -h’ for more information.
macosdeMacBook:Versions macos$ python –version
Python 2.7.16
macosdeMacBook:Versions macos$ python -V
Python 2.7.16
macosdeMacBook:Versions macos$
==========================================================================
下载://www.python.org/downloads/mac-osx/
==========================================================================
macosdeMacBook:Versions macos$ python3
Python 3.9.1 (v3.9.1:1e5d33e9b9, Dec 7 2020, 12:10:52)
[Clang 6.0 (clang-600.0.57)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
>>> exit()
macosdeMacBook:Versions macos$ python -V
Python 2.7.16
macosdeMacBook:Versions macos$
==========================================================================
macosdeMacBook:~ macos$ pip3 install numpy
Collecting numpy
Downloading numpy-1.19.4-cp39-cp39-macosx_10_9_x86_64.whl (15.4 MB)
|████████████████████████████████| 15.4 MB 19 kB/s
Installing collected packages: numpy
Successfully installed numpy-1.19.4
WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
You should consider upgrading via the ‘/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -m pip install –upgrade pip’ command.
macosdeMacBook:~ macos$