jupyter notebook中激活python的虚拟环境

1 激活虚拟环境

source activate tensorflow2

2 安装包

pip install ipykernel

3 安装环境

python -m ipykernel install --user --name tensorflow2 --display-name "tensorflow2"

 4 打开juypter notebook

新建,即可看到tensorflow2的虚拟环境

jupyter notebook中激活python的虚拟环境_第1张图片 

 

 

 

你可能感兴趣的:(python,python)