栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

ubuntu1804-gpu

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ubuntu1804-gpu

FROM     nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04

#ADD    Python-3.5.5.tgz   /opt 
#更新apt
RUN  apt-get update && apt-get install -y  wget
RUN  wget -O   /opt/Python-3.5.5.tar.tgz   https://www.python.org/ftp/python/3.5.5/Python-3.5.5.tgz
#安装依赖
RUN  apt-get install gcc -y && apt-get install make -y 
                && apt-get install vim -y && apt-get install openssl -y 
                && apt-get install libssl-dev -y && apt-get install python3-pip -y

RUN   cd  /opt/    &&   tar  xf  Python-3.5.5.tar.tgz   
      &&       /opt/Python-3.5.5/configure --prefix=/usr/local/python3.5 
                && make && make install
RUN  pip3  install -i  https://mirrors.aliyun.com/pypi/simple/  tensorflow-gpu==1.11.0  
                &&  pip3  install -i  https://mirrors.aliyun.com/pypi/simple/  Keras==2.2.4
CMD [""]
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/581047.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号