pip install tensorflow-gpu 报错

查阅官网后可知,该命令已经被删除掉了。

tensorflow-gpu · PyPI

【解决办法】

我直接安装了其他版本的包

pip install tensorflow-gpu==2.10.0

测试

import tensorflow as tf

print("tf.__version__: ", tf.__version__)

# print("tf.test.is_gpu_available(): ", tf.test.is_gpu_available())

print("tf.config.list_physical_devices('GPU'): ", tf.config.list_physical_devices('GPU'))

相关推荐

  1. pytorch GPU cuda 使用 整理

    2024-04-13 03:48:01       29 阅读
  2. onnxruntime-gpu飘红怎么解决?

    2024-04-13 03:48:01       42 阅读
  3. docker创建容器时使用--gpus all解决

    2024-04-13 03:48:01       25 阅读
  4. GPT-SoVITS声音训练ZeroDivisionError: division by zero

    2024-04-13 03:48:01       32 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-13 03:48:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-13 03:48:01       100 阅读
  3. 在Django里面运行非项目文件

    2024-04-13 03:48:01       82 阅读
  4. Python语言-面向对象

    2024-04-13 03:48:01       91 阅读

热门阅读

  1. 反转字符串

    2024-04-13 03:48:01       35 阅读
  2. Vue中$attrs的作用和使用方法

    2024-04-13 03:48:01       34 阅读
  3. linux下的常用压缩格式及压缩命令

    2024-04-13 03:48:01       35 阅读
  4. C++项目实战与经验分享

    2024-04-13 03:48:01       36 阅读
  5. 什么是H5应用加固?

    2024-04-13 03:48:01       36 阅读
  6. 【2024】将二进制的node_exporter包制作成rpm包

    2024-04-13 03:48:01       38 阅读
  7. 学习笔记-微服务基础(黑马程序员)

    2024-04-13 03:48:01       31 阅读
  8. ORACAL执行计划

    2024-04-13 03:48:01       30 阅读
  9. 在vue3中使用pinia

    2024-04-13 03:48:01       29 阅读
  10. 正则表达式|*+?

    2024-04-13 03:48:01       74 阅读
  11. 深入理解 Golang 中 New() 和 make() 的区别

    2024-04-13 03:48:01       35 阅读
  12. 构建高效运维平台与数据中心可视化方案

    2024-04-13 03:48:01       29 阅读