ipython和jupyter安裝配置

pip通用配置
pip是python的包管理工具,3.x的版本直接帶,可以直接使用,和Yum一樣,爲了使用國內鏡像,如下配置
Linux系統:
$ mkdir ~/.pip
$vim ~/.pip/pip.conf
[global]
index-url=index-url = https://pypi.tuna.tsinghua.edu.cn/simple
ipython和jupyter安裝配置

ipython和jupyter安裝配置
redis就已安裝好了
如果的提示說Pip版本太低,根據提示直接升級
$ pip install --upgrade pip -vvv
去查看下redis包的安裝信息
ipython和jupyter安裝配置

返回到cmdb目錄安裝ipthon,如果離開cmdb目錄,ipython就沒了
$ cd magedu/projects/cmdb/
$ pip install ipython
ipython和jupyter安裝配置
$ ipython檢查是否安裝好
ipython和jupyter安裝配置

Jupyter
是基於WEB的交互式筆記本,其中可以非常方便的使用python;
安裝Jupyter,也會安裝Ipython
$ pip install jupyter

查看幫助文檔
$ jupyter notebook help
ipython和jupyter安裝配置
這個密碼是通過網頁登陸的時候需要用到,我們需要去添加下密碼
$ jupyter notebook password
ipython和jupyter安裝配置
啓動jupyter
$ jupyter notebook --ip=0.0.0.0 --no-browser &
ipython和jupyter安裝配置
打開瀏覽器,輸入服務器IP加端口就可以正常使用了,默認端口爲8888
ipython和jupyter安裝配置

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章