一、创建新环境并命名tesnorflow-gpu同时安装tesnorflow2.10版本
conda create -n tensorflow-gpu tensorflow==2.2.0
第一个tensorflow-gpu是环境名,第二个是安装的包
二、进入jupyter终端激活创建的环境
conda activate tensorflow-gpu
三、安装ipykernel
conda install ipykernel
四、把创建的环境注入jupyter
python -m ipykernel install --user --name tensorflow-gpu --display-name "tensorflow-gpu"
五、在jupyter中删除内核
jupyter kernelspec remove tensorflow-gpu
六、删除环境
conda env remove --name tensorflow-gpu