您的位置:首页 > 运维架构 > Linux

centos7 theano jupyter+hub

2016-07-26 09:24 465 查看
centos7 python升级到3.5.0

http://blog.csdn.net/baidu_26550817/article/details/52032451

centos7中python3.5.0安装成功后

pip3 install theano
pip3 install jupyter notebook


#CentOS 7 通过 yum 安装 nodejs 和 npm
#获取nodejs 资源
# 4.x
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
# 5.x
curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -

yum install -y nodejs
#测试是否安装成功

node -v
# v4.4.0
npm -v
# 2.14.20


npm install -g configurable-http-proxy
pip3 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python