虚拟机 tensorflow换版本

安装流程:https://blog.csdn.net/qq_38308388/article/details/115487915

版本对应查询:https://blog.csdn.net/weixin_42077074/article/details/113745393

https://blog.csdn.net/weixin_44222014/article/details/103499519

如果安装好后提示某些包缺失:https://stackoverflow.com/questions/65464463/importerror-cannot-import-name-keras-tensor-from-tensorflow-python-keras-eng

如果提示没有__version__属性:重装tf (https://blog.csdn.net/woai8339/article/details/97667940)

可能是依赖项版本不一致:

https://blog.csdn.net/Tylor_Durden/article/details/107115645

http://www.360doc.com/content/21/0406/10/7669533_970816827.shtml

 

查看cuda版本:

cat /user/local/cuda/version.txt

查看是否可用gpu训练:

tf.test.is_gpu_available()

 

posted @ 2021-09-02 10:08  是我菜了  阅读(45)  评论(0编辑  收藏  举报