mac安装python3.7_MAC 安装Python3.7

查看下python版本

macosdeMacBook:Versions macos$ cd /System/Library/Frameworks/Python.framework/Versions/

macosdeMacBook:Versions macos$ ls

2.32.52.62.7Current

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$

==========================================================================

下载:https://www.python.org/downloads/mac-osx/

5e80de2e2424d13fe7b096ecd343b3a6.png

f6fe4ba04845b51f1a828b82244a62a9.png

==========================================================================

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$

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值