目录
一、Anaconda Navigator的安装
直接从官方下载(比较慢)或者从清华镜像网站下载Index of /anaconda/archive/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
建议下载
最新版(2022.2.10)用的是Python3.9 和某些插件可能存在适配问题
具体参考【Anaconda教程01】怎么安装Anaconda3 - 知乎https://zhuanlan.zhihu.com/p/75717350
二、jupyter notebook的配置及遇见的某些问题
1、更改文件目录
jupyter notebook 会默认使用C盘的用户目录,很不方便,所以要更改默认目录。
首先win+R打开命令行窗口 输入
jupyter notebook --generate-config
运行后会得到配置文件的地址
用记事本打开目标文件后Ctrl+F搜索 notebook_dir 找到
将 # 删除 取消注释(注意 # 后面的空格也要删掉),然后在 ‘ ’ 内部加上想要存储的文件地址,保存修改。
找到jupyter notebook的快捷方式的文件,右键选择属性将目标中 “ ”内的部分删除。
2、下载Conda以及遇到的问题及其解决方法
安装nb_conda包后能够将Conda创建的环境与Jupyter Notebook相关联,便于在使用Jupyter Notebook时,在不同的环境下创建笔记本进行工作。
在终端运行安装
conda install nb_conda
在安装conda时,出现了报错
Your python: python=3.9.7
If python is on the left-most side of the chain, that’s the version you’ve asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
看了几个帖子说原因是Python版本太高,所以我又安装了一个Python3.7,但是发现还是不行,在终端输入python -V 显示还是 Python3.9.7。然后我直接把Python3.9卸载了(慎重卸载),查看Python版本显示还是3.9,思前想后记起来在安装Anaconda 时有这个页面
(这是第二次安装Anaconda 时截的图)
这个意思大概是将anaconda内部包含的Python版本作为系统的Python版本,所以卸载了系统的Python没能解决问题,猜测可能是最新的Anaconda 存在兼容问题,所以卸载了Anaconda重新安装,这次试用了一个较老的版本,成功安装了nb_conda。
附上anaconda 与 Python 版本对应信息
Old package lists — Anaconda documentationhttps://docs.anaconda.com/anaconda/packages/oldpkglists/
安装完conda后又出问题了
解决方法2018-10-02 Jupyter Notebook environment anaconda3 error - 简书https://www.jianshu.com/p/7d8ce818a923
3、安装Nbextensions遇到的问题
第一次用终端直接运行
conda install -c conda-forge jupyter_contrib_nbextensions
conda install -c conda-forge jupyter_nbextensions_configurator
成功安装了nbextensions,但是没有库,提示是No nbextensions match the applied filters!
只有四五个可选按钮。
ps:作者小白一枚,有不当之处多多包涵,欢迎留言补充和指出错误。