一、安装对应版本

安装tensorflow时不要直接安装,默认安装的是2.x版本,根据自己的需求选择性的安装自己想要的对应自己环境的版本

1、先执行命令anaconda search -t conda tensorflow,出现相关的可选择的tensorflow版本,对应自己的平台进行选择(我是win64)

2、然后根据需求找到自己需要版本的名称,查看安装命令

 

 输入命令: anaconda show conda-forge/tensorflow-estimator,(conda-forge/tensorflow-estimator是版本名称),查看当前版本对应的安装命令

3、输入安装命令

二、如果出错,可选择使用镜像安装

 

 

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

三、查看已安装的tensorflow版本

python

>>import tensorflow as tf

tf.__version__

GitHub 加速计划 / te / tensorflow
25
4
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:2 个月前 )
4f64a3d5 Instead, check for this case in `ResolveUsers` and `ResolveOperand`, by querying whether the `fused_expression_root` is part of the `HloFusionAdaptor`. This prevents us from stepping into nested fusions. PiperOrigin-RevId: 724311958 2 个月前
aa7e952e Fix a bug in handling negative strides, and add a test case that exposes it. We can have negative strides that are not just -1, e.g. with a combining reshape. PiperOrigin-RevId: 724293790 2 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐