日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > python >内容正文

python

MAC电脑安装Python3下的Jupyter Notebook

發(fā)布時(shí)間:2023/12/15 python 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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.

    若未安裝則會執(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#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/binInstalled /Library/Python/2.7/site-packages/pip-20.2b1-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip
  • 更換pip源至國內(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
  • 啟動jupyter Notebook
  • $ python3 -m IPython notebook


    大功告成!可以愉快滴開始我們的Python之旅啦!

    總結(jié)

    以上是生活随笔為你收集整理的MAC电脑安装Python3下的Jupyter Notebook的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。