V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2019-03-22 16:17:09 +08:00 · 1854 次点击
    这是一个创建于 1834 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    GPU 支持

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

    安装 nvidia-docker 可启动支持 NVIDIA® GPU 的 Docker 容器。nvidia-docker 仅适用于 Linux,详情请参阅对应的平台支持常见问题解答了解详情。
    cz5424
        11
    cz5424  
       2019-03-24 21:59:29 +08:00 via iPhone
    @jianjian001 已经用上了,谢了,简化了 Dockerfile
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2805 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:44 · PVG 22:44 · LAX 07:44 · JFK 10:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.