深度学习入门-环境搭建

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

环境搭建

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 就可以了

 

转载于:https://www.cnblogs.com/ioio/p/5423010.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值