TensorFlow:在PyCharm中配置TensorFlow

在本地配置好TensorFlow后,如何在PyCharm中配置TensorFlow呢?

 

只需将当前的Python编译环境配置为TensFlow安装路径中的Pyhton环境,具体操作如下:

 

1. 打开‘Default Settings’

TensorFlow:在PyCharm中配置TensorFlow_第1张图片

 

2. 在Project Interpreter 中选则Add local

TensorFlow:在PyCharm中配置TensorFlow_第2张图片

 

3. 选择Existing Environment,找到TensorFlow安装路径下 bin包里的python文件

TensorFlow:在PyCharm中配置TensorFlow_第3张图片

4. 添加完毕后,点击ok即可,之后就可以正常 import tensorflow

TensorFlow:在PyCharm中配置TensorFlow_第4张图片

 

转载于:https://www.cnblogs.com/huiAlex/p/9098724.html

你可能感兴趣的:(TensorFlow:在PyCharm中配置TensorFlow)