V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 2543 views
    This topic created in 2596 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
        1
    vissssa  
       Mar 22, 2019
    去掉镜像试试 不行就下载离线包
    foxyier
        2
    foxyier  
    OP
       Mar 22, 2019
    @vissssa 请问去掉镜像是什么意思呢,我去试一下下载离线包的可行性。
    vissssa
        3
    vissssa  
       Mar 22, 2019
    @foxyier #2 去掉-i xxx 直接去官方下载
    jianjian001
        4
    jianjian001  
       Mar 22, 2019
    为啥不直接用 docker pull tensorflow/tensorflow
    glasslion
        5
    glasslion  
       Mar 22, 2019
    pip 加上 --trusted-host pypi.tuna.tsinghua.edu.cn 试试
    cz5424
        6
    cz5424  
       Mar 22, 2019
    @jianjian001 这样使用会调用 gpu 计算吗?还是只有 cpu
    cz5424
        8
    cz5424  
       Mar 23, 2019
    @jianjian001 会有 cuda 版本的问题吗,我之前要用 9.0,然后直接选择用 cuda 的镜像写了个 Dockerfile
    jianjian001
        9
    jianjian001  
       Mar 24, 2019
    jianjian001
        10
    jianjian001  
       Mar 24, 2019
    @cz5424 图片显示不出来

    GPU 支持

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

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