jupyter notebook安装

之前一直在IDE中写python代码,后来发现有关python数据分析的教材里强烈推荐用ipython(jupyter notebook是web版本)进行功能验证和调试,试着安装使用了jupyter notebook,发现确实很好用。记录一下安装步骤。

安装步骤

1.安装conda

我是用conda安装的,后来又直接用pip安装了,这两个都可以。先安装一下conda,在这里https://conda.io/miniconda.html 下载conda的安装包,进行安装。

2.安装jupyter notebook

conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
conda config --set show_channel_urls yes

conda update conda
conda update ipython

pip install jupyter -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

使用

打开powershell,进入到有ipynb文件的目录,执行jupyter notebook,jupyter会自动打开浏览器,这时就可以使用jupyter notebook了

猜你喜欢

转载自www.cnblogs.com/beilong/p/9033431.html