ubuntu系统16.04安装theano

来源:互联网 发布:机械师软件 编辑:程序博客网 时间:2024/05/17 21:47

本文只只介绍theano部分的安装和theano、cuda拦截的问题,其他的需要的包百度有很多:


方法1:pip 

sudo  pip  install  theano  -i  https://pypi.doubanio.com/simple

sudo  python  -c  'import  theano;  theano.test()'

可以测试,但是测试时间很长,我就跳过,我的后续无影响。前提是保证前面的所有的包都必须安装


方法2:压缩包安装

wegt

https://pypi.python.org/packages/d2/9a/0834f6ebf3002120f5b803

8f79686624ab3dd9fcfa23c5549d7e2b18336d/Theano-0.8.1.tar.gz

#md5=ad41ef42d47d36d5c6f491419c23abba

tar -zxvf Theano-0.8.1.tar.gz

cd  Theano-0.8.1

sudo python setup.py install


这个版本是theano.0.8.1,千万不要安装tehano.0.8.2,我最开始安装的0.8.2版本,后续各种包导不进去,出各种问

题,后续卸载重装0.8.1,什么问题也没有了。

很神奇,我也不知道为什么?


问题1

我的电脑出现cuda动态连接库出错,直接拦截,??

解决方案:sudo ldconfig /usr/local/cuda-8.0/lib64


问题2:

pycharm运行theano程序时,也发生了theano拦截,

解决方案:

sudo rm -r .theano


希望可以帮到你。

谢谢!!!