MAC电脑安装Python3下的Jupyter Notebook

5 篇文章 0 订阅
4 篇文章 0 订阅

安装好Brew后

安装Python3

  1. 在brew下查找python3
$ brew search python3
==> Formulae
boost-python3       python3 ✔           python@3 ✔          python@3.8
  1. 通过brew安装python3
$ brew install python3
Updating Homebrew...
Warning: python 3.7.7 is already installed, it's just not linked
You can use `brew link python` to link this version.

若未安装则会执行相关安装,已安装则提示未连接
3. 连接python

$ brew link --overwrite python
Linking /usr/local/Cellar/python/3.7.7... 28 symlinks created

通过pip安装Jupyter Notebook

  1. 查看python3版本
$ python3 -V
Python 3.6.7
  1. 安装pip
$ sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/fe/3b/0fc5e63eb277d5a50a95ce5c896f742ef243be27382303a4a44dd0197e29/pip-20.2b1-py2.py3-none-any.whl#sha256=b4e230e2b8ece18c5a19b818f3c20a8d4eeac8172962779fd9898d7c4ceb1636
Best match: pip 20.2b1
Processing pip-20.2b1-py2.py3-none-any.whl
Installing pip-20.2b1-py2.py3-none-any.whl to /Library/Python/2.7/site-packages
Adding pip 20.2b1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip3.8 script to /usr/local/bin
Installing pip3 script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/pip-20.2b1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
  1. 更换pip源至国内阿里云的源(也可选择其它源)
$ pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
Writing to /Users/nd/.config/pip/pip.conf

其它镜像

  • 豆瓣
    https://pypi.doubanio.com/simple/
  • 阿里云
    https://mirrors.aliyun.com/pypi/simple/
  • 清华大学
    https://pypi.tuna.tsinghua.edu.cn/simple/
    https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/
  1. 安装jupyter Notebook
$ pip3 install jupyter notebook
  1. 启动jupyter Notebook
$ python3 -m IPython notebook

Jupyter Notebook
大功告成!可以愉快滴开始我们的Python之旅啦!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值