admin管理员组文章数量:1626226
一、安装Anaconda
二、进入Anaconda Prompt
三、指令操作
conda config --add channels https://mirrors.tuna.tsinghua.edu/anaconda/pkgs/free/
conda config --set show_channel_urls yes
(连接清华镜像)
接下来安装TensorFlow:
1)创建环境(环境名为:tensorflow(可以自己设置))
conda create -n tensorflow python=3.7.6
2)激活环境
activate tensorflow
3)安装
CPU版本
pip install tensorflow==2.2.0 -i https://pypi.doubanio/simple
GPU版本
pip install tensorflow-gpu==2.2.0 -i https://pypi.doubanio/simple
4)测试是否安装成功
在Anaconda Prompt窗口中输入: python
进入python后输入:import tensorflow as tf
没有报错即为成功。
顺手pip install deepxde(注:deepxde在tensorflow>=2.20才可以使用)
命令:tf.__version__(可以查看tensorflow版本号)
四、连接PyCharm
File -->Setting-->Python Interpreter-->add-->Existing environment-->找到tensorflow环境下的python.exe-->ok
版权声明:本文标题:清华镜像安装TensorFlow2.20(windows环境) 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1728942542a1180919.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论