本节内容;python
2. 安装ipythonjson
能够使用pip命令安装。若是你是用pyenv安装的python的话,pip命令已经有了。vim
当须要安装包的时候,最好进入虚拟环境,为了保持基础版本的干净。浏览器
[root@db test]# pyenv local cmdb (cmdb) [root@db test]# pip install ipython
可是这样下载速度很慢,并且容易链接不上,ctrl+c终止。ruby
# mkdir ~/.pip # vim ~/.pip/pip.conf [global] timeout = 6000 index-url = http://mirrors.aliyun.com/pypi/simple/ trusted-host = mirrors.aliyun.com # pip install ipython
# pip install jupyter # jupyter -h | less usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [subcommand] Jupyter: Interactive Computing positional arguments: subcommand the subcommand to launch optional arguments: -h, --help show this help message and exit --version show the jupyter command's version and exit --config-dir show Jupyter config dir --data-dir show Jupyter data dir --runtime-dir show Jupyter runtime dir --paths show all Jupyter paths. Add --json for machine-readable format. --json output paths as machine-readable json Available subcommands: bundlerextension console kernel kernelspec migrate nbconvert nbextension notebook qtconsole run serverextension troubleshoot trust (END)
第一次访问时浏览器输入http://ip:8888/?token=b201c673885018b5a0b8e438139f978427bda8d190a4f4c5,我是在我本身笔记本上打开一个浏览器访问的。bash
点击右边“New”,选择“Python3”。这样会在浏览器打开一个新选项卡,以下。less
补充说明:工具
参数 --no-browser 就不会在当前Linux主机上启动浏览器。开发工具
easy_insall的做用和perl中的cpan, ruby中的gem相似,都提供了在线一键安装模块的傻瓜方便方式,ui
而pip是easy_install的改进版, 提供更好的提示信息,删除package等功能。老版本的python中只有easy_install, 没有pip。