吳恩達老師的版本
在Coursera的深度課程中,打開TensorFlow Tutorial,輸入print(tf.__version__)
.得到的tensorflow版本是1.2.1。
安裝對應版本
在自己的計算機安裝tensorflow 1.2.1(cpu版本)只需要一條命令
pip install tensorflow==1.2.1
測試
import tensorflow as tf
print(tf.__version__)
# output: 1.2.1
對了,如果出現458: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future ver
這種的警告,說明你的numpy版本過高,可以使用 pip install numpy==1.16.0
修正這個問題。
結語
希望能幫到一些小夥伴.