---------------------------------------------------------------------------------------------------------------

环境搭建

http://www.tuicool.com/articles/eiM3Er3

由于我们的源码是PYTHON,所以要安装python

的环境。也需要安装一些库。所以要使用PIP这个

工具进行安装。

http://blog.sina.com.cn/s/blog_447774680100v4oi.html

安装之后CMD里面还不行识别到程序,所以需要设置环境变量才能

调用PIP PYTHON

 --------------------------------------------------------------------------------------------------------------------

https://github.com/Thoughtly/DLBlog

源码里面的README.md文件说明了怎么安装

深度学习

Configuration is simple. We recommend virtualenv but it's not required.

To get started just run pip with the provided requirements file:

pip install -r requirements.txt

This will install Keras and pyplot along with other dependencies.

That should get you going. Each script is referred to in one or more of the blog posts starting here.

-------------------------------------------------------------------------------------------------------------------------

安装的时候碰到一个问题,pip install -r requirements.txt

raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

----------------------------------------
Command "g:\myve\scripts\python.exe -c "import setuptools, tokenize;__file__='e:
\\temp_n~1\\pip-build-1xigxu\\scipy\\setup.py';exec(compile(getattr(tokenize, 'o
pen', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install
--record e:\temp_n~1\pip-3hncqr-record\install-record.txt --single-version-exter
nally-managed --compile --install-headers g:\myve\include\site\python2.7\scipy"
failed with error code 1 in e:\temp_n~1\pip-build-1xigxu\scipy 

于是发现scipy 没有安装成功,看了错误的里面有个提示

numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

说明scipy 缺少lapack/blas 这个资源而不能安装成功,或者说安装好了,缺少这个资源运行失败。

这样导致安装其他需要scipy的库的时候导致失败

那怎么样可以直接下载该有的资源都有的scipy的安装包呢?goole 了一下 ,发现如下命令

http://stackoverflow.com/questions/33368261/what-is-the-easiest-way-to-install-blas-and-lapack-for-scipy

 

在 https://pip.pypa.io/en/latest/user_guide/#installing-from-wheels

找到要安装的文件,也安装了依赖的文件

http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

然后先安装numpy,后安装scipy 

pip install numpy-1.10.4+mkl-cp27-cp27m-win_amd64.whl

pip install scipy-0.17.0-cp27-none-win_amd64.whl (要在64位的,否则会失败)

然后pip install -r requirements.txt 就可以了