首先创建自己的虚拟环境
conda create -n tensorflow python=3.9
激活环境
conda activate tensorflow
安装tensorflowgpu版本
pip install tensorflow-gpu==2.1.0
安装ipykernel
conda install ipykernel
把本地环境注入jupyter
python -m ipykernel install --user --name tensorflow --display-name "tf"
打开jupyter
jupyter notebook