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 小时前
CANN 与主流 AI 框架集成:从 PyTorch/TensorFlow 到高效推理的无缝迁移指南
人工智能·pytorch·tensorflow
小小测试开发2 天前
UI自动化测试:CSS定位方式超详细解析(附实战示例)
css·ui·tensorflow
技道两进3 天前
使用深度神经网络进行时间序列分析之数据窗口
深度学习·tensorflow·时间序列预测·滑动窗口·数据窗口
青春不朽5123 天前
TensorFlow 入门指南
人工智能·python·tensorflow
Together_CZ5 天前
ultralytics.utils.export——engine.py、imx.py、tensorflow.py各模型导出子模块代码详读
tensorflow·onnx·ultralytics·utils.export·engine.py·imx.py·模型导出
AndyHeee6 天前
【windows使用TensorFlow,GPU无法识别问题汇总,含TensorFlow完整安装过程】
人工智能·windows·tensorflow
移幻漂流8 天前
05 - TensorFlow Lite 技术全景:轻量级机器学习推理引擎完整解析
android·人工智能·机器学习·tensorflow
却道天凉_好个秋8 天前
Tensorflow数据增强(二):基本变换操作
人工智能·python·tensorflow
GatiArt雷8 天前
TensorFlow Lite在STM32嵌入式设备中的AI图像识别实战
人工智能·stm32·tensorflow
错把套路当深情8 天前
通俗易懂的 TensorFlow 和 Transformers
人工智能·tensorflow·transformer