问题:Anaconda3虚拟环境中安装Jupyter Notebook,无需:pip install Jupyter Notebook
只需要先安装:nb_conda
pip install nb_conda
或者
(tensorflow2-gpu) C:\Users\1233\Desktop>conda install nb_conda
安装完成之后,直接cmd
命令行激活相应的虚拟环境,然后输入Jupyter Notebook
,即可默认浏览器打开Jupyter Notebook
这样安装的好处:节省内存空间;其次,这样可以在相应虚拟环境中运行代码。
还可以选择Jupyter Notebook运行的虚拟环境,如下所示:
发现在Anaconda base环境下,输入jupyter notebook命令,运行无法展示上述图片的新建虚拟环境选择选项,所以输入以下命令解决:
conda uninstall jupyter notebook
再输入:
conda install nb_conda