1 激活虚拟环境
source activate tensorflow2
2 安装包
pip install ipykernel
3 安装环境
python -m ipykernel install --user --name tensorflow2 --display-name "tensorflow2"
4 打开juypter notebook
新建,即可看到tensorflow2的虚拟环境
1 激活虚拟环境
source activate tensorflow2
2 安装包
pip install ipykernel
3 安装环境
python -m ipykernel install --user --name tensorflow2 --display-name "tensorflow2"
4 打开juypter notebook
新建,即可看到tensorflow2的虚拟环境