admin管理员组文章数量:1794759
Python 3.9下Tensorflow的安装
打开Anaconda Prompt:
切换镜像(慢的话):
conda config --add channels mirrors.ustc.edu/anaconda/pkgs/free/ conda config --add channels mirrors.ustc.edu/anaconda/pkgs/main/切换后下载不了,切回默认源:
conda config --remove-key channels创建环境:
conda create -n Tensorflow pip Python=3.9激活tensorflow环境:
activate tensorflow用conda安装tensorflow:
conda install tensorflow-gpu=2.6.0测试安装是否成功:
import tensorflow as tf tfpat.v1.disable_eager_execution() #保证sess.run()能够正常运行 hello = tf.constant('hello,tensorflow') sess= tfpat.v1.Session()#版本2.0的函数 print(sess.run(hello))输出b’Hello, TensorFlow!'就成功!
安装jupyter:
//TODO
conda安装pytorch:传送门
本文标签: Pythontensorflow
版权声明:本文标题:Python 3.9下Tensorflow的安装 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686776740a101402.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论