iT邦幫忙

0

Python_0-2_部署開發環境_安裝jupyter

Joe 2019-08-29 15:47:36312 瀏覽

開啟命令提示字元:
Win+R
文字方塊輸入CMD
https://ithelp.ithome.com.tw/upload/images/20190829/20110334mpEpBBMwJF.png

檢查pip的版本:
輸入pip list
https://ithelp.ithome.com.tw/upload/images/20190829/20110334ZGF1T5s1Ry.png

升級pip的版本:
依照上圖的提示輸入python -m pip install --upgrade pip升級pip的版本:
https://ithelp.ithome.com.tw/upload/images/20190829/20110334YsgExrsY7W.png

如果忽略上述兩個步驟,一樣可以安裝jupyter,但是安裝完成之後一樣會出現升級提示!

安裝jupyter:
輸入python -m pip install jupyter
https://ithelp.ithome.com.tw/upload/images/20190829/20110334A6s70MJWLQ.png
出現pip的升級提示!

顯示jupyter已安裝的套件列表:
輸入jupyter kernelspec listhttps://ithelp.ithome.com.tw/upload/images/20190829/20110334iqBzacipko.png

開啟jupyter notebook:
輸入jupyter notebook
https://ithelp.ithome.com.tw/upload/images/20190829/20110334j6alT4uXM3.png

https://ithelp.ithome.com.tw/upload/images/20190829/20110334Y3fljlPEId.png

撰寫批次檔來達成快速安裝https://ithelp.ithome.com.tw/upload/images/20190829/20110334fLYppXeegX.png:

@echo off

::查詢pip的版本
pip list

::升級pip的版本
python -m pip install --upgrade pip

::安裝jupyter
python -m pip install jupyter

::查詢jupyter已經安裝的套件列表:
jupyter kernelspec list

pause

一樣的完成提示...
https://ithelp.ithome.com.tw/upload/images/20190829/20110334NUfEdvuo2K.png

為了快速啟動jupyter,一樣撰寫批次檔:
https://ithelp.ithome.com.tw/upload/images/20190829/20110334qh72TL0M50.png
@echo off

jupyter notebook

pause


尚未有邦友留言

立即登入留言