Ubuntu16.04.3深度学习环境搭建

依赖

pip3 install pillow

安装numpy相关
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose

pipinstall numpy
sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
pip install scipy
pip install sklearn

pip3 install keras
pip3 install tensorflow


在sklearn 0.18及以上的版本中,出现了sklearn.cross_validation无法导入的情况,原因是新版本中此包被废弃
只需将 cross_validation 改为 model_selection 即可,如下:
包中的函数仍可继续使用
 



原文地址:https://www.cnblogs.com/rain-chenwei/p/11603971.html