推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
foxyier
V2EX  ›  Python

[求助]docker 安装 tensorflow 的时候提示找不到匹配的版本

  •  
  •   foxyier · Mar 22, 2019 · 3129 views
    This topic created in 2788 days ago, the information mentioned may be changed or developed.

    docker 版本为 python3.5alpine 命令为: pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir 报错信息: Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow

    11 replies  •  2019-03-24 21:59:29 +08:00
    vissssa
    vissssa
    Mar 22, 2019
    1
    去掉镜像试试 不行就下载离线包
    foxyier
    foxyier
    OP
    Mar 22, 2019
    2
    @vissssa 请问去掉镜像是什么意思呢,我去试一下下载离线包的可行性。
    vissssa
    vissssa
    Mar 22, 2019
    3
    @foxyier #2 去掉-i xxx 直接去官方下载
    jianjian001
    jianjian001
    Mar 22, 2019
    4
    为啥不直接用 docker pull tensorflow/tensorflow
    glasslion
    glasslion
    Mar 22, 2019
    5
    pip 加上 --trusted-host pypi.tuna.tsinghua.edu.cn 试试
    cz5424
    cz5424
    Mar 22, 2019
    6
    @jianjian001 这样使用会调用 gpu 计算吗?还是只有 cpu
    cz5424
    cz5424
    Mar 23, 2019
    8
    @jianjian001 会有 cuda 版本的问题吗,我之前要用 9.0,然后直接选择用 cuda 的镜像写了个 Dockerfile
    jianjian001
    jianjian001
    Mar 24, 2019
    10
    @cz5424 图片显示不出来

    GPU 支持

    Docker 是在 GPU 上运行 TensorFlow 的最简单方法,因为主机只需安装 NVIDIA® 驱动程序(无需安装 NVIDIA® CUDA® 工具包)。

    安装 nvidia-docker 可启动支持 NVIDIA® GPU 的 Docker 容器。nvidia-docker 仅适用于 Linux,详情请参阅对应的平台支持常见问题解答了解详情。
    cz5424
    cz5424
    Mar 24, 2019 via iPhone
    11
    @jianjian001 已经用上了,谢了,简化了 Dockerfile
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1652 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:22 · PVG 16:22 · LAX 00:22 · JFK 03:22
    ♥ Do have faith in what you're doing.