jupyter 安装与适配
配置conda镜像源
数据分析课程阶段各种第三方的模块下载如果用pip
指令下载经常会有模块不适配的问题,所以咱们会用到Anaconda中的包管理工具conda
去下载第三方模块。用conda
指令下载的模块适配问题比较少,兼容性比较高,而且使用方式和pip
指令差不多。
由于 Anaconda 下载文件/依赖库等默认的采用国外的服务器,下载速度一言难尽,一般改为国内的清华源/阿里源等方式解决。我这里安装的是清华的镜像源。
- “Win”+R ,输入cmd进入cmd终端,输入以下指令回车执行
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
Anaconda解释器安装好后,在终端执行以下指令,即可适配数据分析课程中模块工具
注意:需要很长时间
conda install jupyter notebook # 安装Jupyter包
conda install -c conda-forge jupyter_contrib_nbextensions # 拓展模块
conda update nbconvert # 更新nbconvert,不然可能不适配
jupyter contrib nbextension install --user # 适配模块
conda install -c conda-forge jupyter_nbextensions_configurator # 拓展插件
jupyter nbextensions_configurator enable --user # 适配插件
pip install autopep8 # 安装pep8代码规范的模块
pip install yapf # 安装拓展包依赖的第三方功能模块
若出现加载插件 jupyter_nbextensions_configurator报错或者加载时间太长,参考:https://blog.csdn.net/qq_45261963/article/details/121988266