anaconda安装的TensorFlow版本没有model这个模块
生活随笔
收集整理的這篇文章主要介紹了
anaconda安装的TensorFlow版本没有model这个模块
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、采用git bash來安裝,確認已經安裝了git
二、手動找到TensorFlow的模塊文件夾地址,若不知道,輸入以下兩行代碼:
import tensorflow as tf
tf.__path__
輸出的地址為TensorFlow模塊所在地址
三、在此地址右鍵:git bash here
四、在git bash中輸入以下命令:
git clone --recurse-submodules https://github.com/tensorflow/models
五、安裝編譯完畢會發現tf文件夾下已經有models文件夾了
導入程序試試看
from tensorflow.models.tutorials.rnn.ptb import reader#存在models了也可以導入了
?
參考https://blog.csdn.net/u013058751/article/details/80157020
?
轉載于:https://www.cnblogs.com/Lee-yl/p/10072843.html
總結
以上是生活随笔為你收集整理的anaconda安装的TensorFlow版本没有model这个模块的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 中班语言优质课教案《彩色的牛奶》反思
- 下一篇: 文件操作中关于文件句柄的相关操作