centos7 theano jupyter+hub

来源:互联网 发布:淘宝 全球购 要求 编辑:程序博客网 时间:2024/05/18 17:57

centos7 python升级到3.5.0
http://blog.csdn.net/baidu_26550817/article/details/52032451
centos7中python3.5.0安装成功后

pip3 install theanopip3 install jupyter notebook
#CentOS 7 通过 yum 安装 nodejs 和 npm#获取nodejs 资源# 4.xcurl --silent --location https://rpm.nodesource.com/setup_4.x | bash -# 5.xcurl --silent --location https://rpm.nodesource.com/setup_5.x | bash -yum install -y nodejs#测试是否安装成功node -v  # v4.4.0npm -v # 2.14.20
npm install -g configurable-http-proxypip3 install jupyterhub

最后才悔悟,人啊何必为难自己!
https://www.continuum.io/downloads
下载个anaconda

bash Anaconda3-4.1.1-Linux-x86_64.sh转到安装目录的bin下conda install theano

然后可以用了


下边不用看


1 安装setuptools-18.4
下载页面:https://pypi.python.org/pypi/setuptools/
文件:setuptools-18.4.tar.gz
解压文件
进入解压的文件夹setuptools-18.4
执行命令:sudo python setup.py install
安装完成
2 安装pip
执行命令:sudo easy_install pip
3 安装numpy scipy
执行命令: sudo yum -y install gcc gcc-c++ numpy python-devel scipy

4 安装numpy
执行命令:sudo pip install numpy

5 安装 scipy 安装scipy之前,需要安装blas,lapack,numpy等
执行命令:sudo pip install scipy
6 安装 matplotlib
执行命令:sudo pip install matplotlib
报错:freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
png: no [pkg-config information for ‘libpng’ could not
be found.]

  • The following required packages can not be built:
    * freetype, png
    解决方法:http://newcoder.io/dataviz/part-0/
    最终:sudo yum install python-matplotlib

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-5T3ZgQ/ matplotlib

执行pip install PIL –allow-external PIL –allow-unverified PIL

7 安装 theano
执行命令:sudo pip install theano

1 0
原创粉丝点击