win10安装在anaconda 中tensorflow2.10

  • python 3.10.18

  • cudatoolkit:11.2.2

  • cudnn: 8.1.0

  • numpy: 1.23.5

  • conda install cudatoolkit=11.2 cudnn=8.1.0 -c conda-forge

  • python -m pip install tensorflow==2.10

不要装 tensorflow-gpu,改装 tensorflow==2.10.*

tensorflow-gpu 这个包在新版本 TensorFlow 里基本已经"废弃/不再需要"了(GPU 支持已经合并进 tensorflow 主包),用 pip 装 tensorflow-gpu==2.10 会被依赖链(尤其是 grpcio)卡死,出现 "No matching distribution found"。

未尝试可行的

bash 复制代码
conda create -n tf210 python=3.10 -y
conda activate tf210
python -m pip install --upgrade pip
conda install cudatoolkit=11.2 cudnn=8.1.0 -c conda-forge
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple "numpy==1.23.5" "protobuf<4" "tensorflow==2.10.*"
python -c "import tensorflow as tf; print(tf.__version__)"
相关推荐
小鸡吃米…2 天前
基于 TensorFlow 的图像识别
人工智能·python·tensorflow
小鸡吃米…2 天前
TensorFlow - 构建计算图
人工智能·python·tensorflow
A懿轩A3 天前
【2026 最新】TensorFlow 安装配置详细指南 同时讲解安装CPU和GPU版本 小白也能轻松上手!逐步带图超详细展示(Windows 版)
人工智能·windows·python·深度学习·tensorflow
小鸡吃米…3 天前
TensorFlow 实现异或(XOR)运算
人工智能·python·tensorflow·neo4j
小鸡吃米…4 天前
TensorFlow 实现梯度下降优化
人工智能·python·tensorflow·neo4j
甄心爱学习4 天前
【LR逻辑回归】原理以及tensorflow实现
算法·tensorflow·逻辑回归
小鸡吃米…4 天前
TensorFlow 实现多层感知机学习
人工智能·python·tensorflow
小鸡吃米…5 天前
TensorFlow 优化器
人工智能·python·tensorflow
小鸡吃米…6 天前
TensorFlow 模型导出
python·tensorflow·neo4j
Jonathan Star7 天前
Ant Design (antd) Form 组件中必填项的星号(*)从标签左侧移到右侧
人工智能·python·tensorflow