jupyter notebook添加Anaconda虚拟环境的python kernel
转载地址:http://www.cnblogs.com/yinzm/p/7881328.html
例如,现在想创建一个虚拟环境名为ptyhon3.5,希望在jupyter notebook中可以直接选择ptyhon3.5这个kernel。命令如下
conda create -n ptyhon3.5 python=3.5 # 创建一个python3的环境,名为python3.5
activate ptyhon3.5# **py3环境
退出**环境 deactivate ,再走下一步。不然会出错
conda install ipykernel # 安装ipykernel模块
python -m ipykernel install --user --name ptyhon3.5 --display-name "ptyhon3.5" # 进行配置
jupyter notebook # 启动jupyter notebook,然后在"新建"中就会有ptyhon3.5这个kernel了
如图,已成功!