create environment
conda create -n tf1 python==3.6.10
conda activate tf1
安装tensorflow-GPU
pip3 install tensorflow-gpu==1.15 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --user
pip install ipykernel --user -i https://pypi.douban.com/simple
python -m ipykernel install --name tf1 --user
测试tensorfow-GPU
import tensorflow as tf
tf.test.is_gpu_available()
结果如下