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安装配置

转载于:https://blog.51cto.com/536410/2153926

相关文章:

  • 2022-01-24
  • 2021-12-28
  • 2021-11-13
  • 2021-12-01
  • 2021-07-02
  • 2021-08-16
猜你喜欢
  • 2021-06-24
  • 2021-08-26
  • 2021-10-27
  • 2021-05-16
  • 2022-01-20
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案