Skip to content

Commit 60e51e4

Browse files
committed
test
1 parent e49ce63 commit 60e51e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ml_notes/TensorFlow/TensorFlow环境搭建.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,17 @@ TensorFlow支持Ubuntu、Mac OS X、Windows,也支持从源码安装。本文
8686

8787
![image](python2test.png)
8888

89-
##### 程序会报错,指出来tf.estimator模块下不存在LinearRegressor属性。
89+
#### 程序会报错,指出来tf.estimator模块下不存在LinearRegressor属性。
9090

9191
为什么会出现这个问题呢?我想可能是Python2下的tensorflow库中一些上层接口功能没有跟进,而且考虑到Python2版本到2020年会停止支持,因此Google官方可能对Python3下的tensorflow库支持会更全面一些。既然这样,从Python2环境切换到Python3环境,是一个避免这些问题的办法。
9292

9393
与Virualenv类似,Anaconda支持搭建Python的虚拟环境,也就是说,无论Anaconda是基于Python2版本还是Python3版本,我们都可以搭建Python的双版本共存环境,根据项目需要,随时可以切换版本。
9494

95-
##### 搭建Python3环境:
95+
#### 搭建Python3环境:
9696

9797
![image](python3.png)
9898

99-
##### 激活python3环境,并运行Test.py:
99+
#### 激活python3环境,并运行Test.py:
100100

101101
![image](python3test.png)
102102

0 commit comments

Comments
 (0)