通过pip安装TensorFlow指定版本命令: cpu版本:pip install tensorflow==1.2.1 (==后面为所要安装的版本号) gpu版本类似:pip install tensorflow-gpu==1.2.1