Theano安装及配置(基于ubuntu16.04 LTS)参考官网
来源:互联网 发布:linux 查看inode 数量 编辑:程序博客网 时间:2024/06/08 16:16
Theano(题目)
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git(安装代码)
sudo pip install Theano (安装代码)
# cuda 7.5 don't support the default g++ version. Install an supported version and make it the default.(注释)
sudo apt-get install g++-4.9(安装代码)
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++
(安装代码)
h5py(题目)
conda install h5py # Anaconda/Miniconda(注释)
enpkg h5py # Canopy(注释)
sudo pip install h5py(安装代码)
sudo pip install scikit-image(安装代码)
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git(安装代码)
sudo pip install Theano (安装代码)
# cuda 7.5 don't support the default g++ version. Install an supported version and make it the default.(注释)
sudo apt-get install g++-4.9(安装代码)
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++
(安装代码)
# Work around a glibc bug(注释)
echo -e "\n[nvcc]\nflags=-D_FORCE_INLINES\n" >> ~/.theanorc(注释)h5py(题目)
conda install h5py # Anaconda/Miniconda(注释)
enpkg h5py # Canopy(注释)
sudo pip install h5py(安装代码)
sudo pip install scikit-image(安装代码)
此时,Theano已安装完成。可进行测试是否安装成功
在终端输入python后,会在下面出现>>>,此时继续输入import theano,如在下行出现>>>,祝贺你,安装Theano成功!!!
如需继续配置caffe学习框架,需要注意:
该操作选择系统默认的gcc,g++(注:theano要求版本4.9.caffe要求版本5.0,否则会出现未定义的函数等一堆报错信息。make all时务必用以下命令切换到5.0版本。16.04默认5.0版本)
sudo update-alternatives --config gcc
输入后可进行gcc版本的选择,如需安装caffe,选择5.0版本。
sudo update-alternatives --config g++
输入后可进行g++版本的选择,如需安装caffe,选择5.0版本。
下文中记录caffe安装及编译。
————用于记录深度学习所做笔记,谢谢大家参考。
0 0
- Theano安装及配置(基于ubuntu16.04 LTS)参考官网
- Ubuntu16.04lts 安装Theano配置GPU
- Ubuntu16.04 LTS配置caffe、tensorflow和theano环境
- Ubuntu16.04LTS安装及submile text 3基本配置
- 基于Ubuntu16.04 LTS安装Oracle11g
- 基于Ubuntu16.04LTS配置IPSec协议搭建VPN
- Ubuntu 16.04 LTS 安装Theano配置GPU
- Ubuntu16.04LTS配置Mysql
- Ubuntu16.04lts使用Anaconda安装tensorflow并配置GPU
- ubuntu16.04 LTS 下tftp的安装、配置、使用
- Linux(ubuntu16.04LTS) 下安装并配置vsftp
- win10下ubuntu16.04LTS双系统的安装以及配置
- ubuntu16.04LTS安装JDK8
- Ubuntu16.04LTS 安装 QT
- Ubuntu16.04LTS 安装Docker
- Ubuntu16.04 LTS 安装FFmpeg
- 新手安装ubuntu16.04LTS
- 双系统网络配置(Win7+Ubuntu16.04LTS)--驱动安装及其它
- CenOS利用别名提高工作效率
- java设计模式之---------------建造者模式
- IntelliJ IDEA 配置
- sed.htm
- windows下简单安装postgres
- Theano安装及配置(基于ubuntu16.04 LTS)参考官网
- Android File.createNewFile失败; Android6.0以上需要用户给权限
- mysql 神器 if 语句
- Android中的显隐式Intent
- 核心动画的总结
- 关于html代码中的一些比较好的技巧,功能实现
- mysql5.7.18免安装版和Navicat连接
- apple保留两个字母的前缀,建议用三个字母做前缀
- 浅谈 C++ 中的 new/delete 和 new[]/delete[]