生活随笔
收集整理的這篇文章主要介紹了
MAC电脑安装Python3下的Jupyter Notebook
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
安裝好Brew后
安裝Python3
在brew下查找python3
$ brew search python3
== > Formulae
boost-python3 python3 ? python@3 ? python@3.8
通過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.
若未安裝則會(huì)執(zhí)行相關(guān)安裝,已安裝則提示未連接 3. 連接python
$ brew
link --overwrite python
Linking /usr/local/Cellar/python/3.7.7
.. . 28 symlinks created
通過pip安裝Jupyter Notebook
查看python3版本
$ python3 -V
Python 3.6.7
安裝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
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/binInstalled /Library/Python/2.7/site-packages/pip-20.2b1-py2.7.egg
Processing dependencies
for pip
Finished processing dependencies
for pip
更換pip源至國(guó)內(nèi)阿里云的源(也可選擇其它源)
$ 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/ 清華大學(xué) https://pypi.tuna.tsinghua.edu.cn/simple/ https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/
安裝jupyter Notebook
$ pip3
install jupyter notebook
啟動(dòng)jupyter Notebook
$ python3 -m IPython notebook
大功告成!可以愉快滴開始我們的Python之旅啦!
總結(jié)
以上是生活随笔 為你收集整理的MAC电脑安装Python3下的Jupyter Notebook 的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔 網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔 推薦給好友。