centos 7 下搭建 tensorflow+keras 深度学习环境
tensorflow
一个面向所有人的开源机器学习框架
项目地址:https://gitcode.com/gh_mirrors/te/tensorflow

·
之前在阿里云服务器上搭建过 docker+tensorflow+keras 的深度学习环境,由于服务器停用等一系列问题,不得不在本地服务器重新搭建环境,本次以 root 用户直接操作,不再使用 docker 容器。作为分享和备忘,特此记录。
1.python2.7.5 安装
centos 系统自带 python,此步骤可省略(Mac Os 同样可省略此步骤),当然,也可升级 python3.x 版本。
2.python-pip 安装
yum install python-pip python-devel
安装完成后,测试一下:
pip --version
若显示未找到命令,则如下形式再次安装:
yum -y install epel-release
yum install python-pip
安装完成后,再次测试结果如下则表示 pip 安装成功:
3.安装tensorflow
这里给一个国内镜像源,十分方便,资源丰富,避免了各种墙外麻烦:https://mirrors.tuna.tsinghua.edu.cn/help/tensorflow/
可根据需要自行配置下载版本,十分方便,解决了你满世界找镜像的麻烦。安装成功后,可在 pip list 中找到 tensorflow,如下图所示:
4.安装 numpy、scipy 库
pip install numpy
pip install scipy
5.安装 keras
git clone https://github.com/fchollet/keras.git
cd keras/
python setup.py install
安装完成后,同样查看 pip list 如下图:
如果能走到这里,那么恭喜你装好了,去深度学习的大海里遨游吧!
安装有问题可留言,可探讨!




一个面向所有人的开源机器学习框架
最近提交(Master分支:1 个月前 )
4f64a3d5
Instead, check for this case in `ResolveUsers` and `ResolveOperand`, by querying whether the `fused_expression_root` is part of the `HloFusionAdaptor`.
This prevents us from stepping into nested fusions.
PiperOrigin-RevId: 724311958
1 个月前
aa7e952e
Fix a bug in handling negative strides, and add a test case that exposes it.
We can have negative strides that are not just -1, e.g. with a combining
reshape.
PiperOrigin-RevId: 724293790
1 个月前
更多推荐
所有评论(0)