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__)"
相关推荐
万粉变现经纪人9 小时前
如何解决 pip install tensorflow-gpu 报错 未检测到 CUDA 驱动 问题
人工智能·python·深度学习·aigc·tensorflow·bug·pip
我姓徐3 天前
TensorFlow 模型训练和简单部署示例
python·tensorflow
星马梦缘5 天前
cannot import name ‘deserialize‘ from ‘tensorflow.keras.models‘ 的解决方案
tensorflow·keras·neo4j
星马梦缘5 天前
cannot import name ‘__version__‘ from ‘tensorflow.keras‘ 的解决方案
人工智能·tensorflow·keras
独隅6 天前
在 Linux 上部署 TensorFlow 模型的全面指南
linux·运维·tensorflow
longxibo6 天前
【flowable 7.2.0 二开之二:自定义表单设计及扩展流程节点属性窗口】
tensorflow
独隅7 天前
在 Windows 上部署 TensorFlow 模型的全面指南
人工智能·windows·tensorflow
songcream18 天前
TensorFlow的一些基本概念
人工智能·python·tensorflow
技术小黑9 天前
TensorFlow学习系列09 | 优化猫狗识别
人工智能·学习·tensorflow
努力学习_小白9 天前
数据增强——tensorflow
人工智能·python·tensorflow