首先,建立一个环境用来安装Tensorflow:python
conda create -n tensorflow python=3.5.6
安装之后,在Anaconda Navigator能够看到已经增长了一个新环境:spa
在cmd窗口中输入:code
conda activate tensorflow
安装Tensorflow的GPU版本:blog
pip install --upgrade --ignore-installed tensorflow--gpu
在PyCharm中,File->Settings->Projector Interpretor,在Projector Interpretor中Add,选择Virtualenv Environment,Existing Environment,选择C:\ProgramData\Anaconda3\envs\tensorflow\python.exe,再点击OK。ip