创建虚拟环境并安装
首先,先使用 conda info --envs 命令查看现有环境中是否存在要创建的虚拟环境
然后,使用 conda create install XXX
其中,XXX是创建的虚拟环境名称
要想启动该环境,使用命令: conda activate xxx
如果不行,使用source activate xxx
要想退出该环境:使用命令:conda deactivate xxx
同上,如果不成功,使用source deactivate xxx
安装相关组件
使用pip install 命令安装各种组件
如: pip install jupyter
pip install numpy
…
安装好jupyter notebook后,使用 jupyter notebook登入界面,如果是使用root用户,使用命令
jupyter notebook --allow-root