当前位置: 首页 > 工具软件 > Pylearn2 > 使用案例 >

linux安装 cuda、cdunn、numpy、scipy、theano、pylearn2、scikit-neuralnetwork

益何平
2023-12-01

前言:学习第一步安装,折腾n天,终于装完了!!!激动!scikit-neuralnetwork,cuda什么的回想一下并不难装,最难的是版本的匹配问题。帖子写的很细致,我的问题都写进去了,我觉得看一遍我的帖子,对于安装很有帮助的(安装过程中甚至去改过lasagne等包的源码)。大家在安装的时候一定要仔细阅读官网那该的安装步骤,并且阅读帖子,这样才能保证安装问题少。我没用好anaconda3,直接用conda不如直接安装。

环境配置:

os:16.04(14.04版本也可以)

python:2.7环境(使用3.5我也试过,过程一样,用3.5吧,2马上就要不能使用了)

安装过程:

一、cuda

安装nvidia显卡驱动,再安装cuda,这里要注意显卡的型号、显卡驱动版本、以及cuda版本之间的关系,https://www.jianshu.com/p/c2215c74a8fe,参照这个进行安装。

二、安装scikit-neuralnetwork

sudo apt-get install pip

 

sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran

 

sudo pip install scikit-learn==0.17

sudo pip install scipy==0.17.0

sudo pip install Theano==0.8.1

sudo pip install numpy==1.12.0

 

pylearn2:

git clone git://github.com/lisa-lab/pylearn2.git

python setup.py develop

sudo gedit ~/.bashrc

在末尾加上:export PYLEARN2_DATA_PATH=/data/lisa/data

source ~/.bashrc(代码可能需要手打,博客的格式可能不对)

pylearn2官网链接(可参照官网安装):http://deeplearning.net/software/pylearn2/

 

lasagne:

sudo pip install git+https://github.com/Lasagne/Lasagne.git@0440814#egg=Lasagne==0.2-dev

 

scikit-neuralnetwork:

git clone https://github.com/aigamedev/scikit-neuralnetwork.git

cd scikit-neuralnetwork

python setup.py develop

官网链接:https://github.com/aigamedev/scikit-neuralnetwork

 

测试:

pip install nose nosetests -v sknn.tests

***********************更新*********************

前几天不好用了突然,报这些错误:

1、no module name***

2、no module name nose

3、no module mame test

4、诸如此类

解决方法:(原因是版本之间不匹配导致的)

sudo pip install theano --upgrade

 

参考链接:

1、Linux 安装numpy和scipy

https://blog.mimvp.com/article/3454.html

2、Linux Ubuntu桌面系统下使用shadowsocks 安装chrome

https://www.8dlive.com/post/168.html

3、Linux Theano 安装教程

https://blog.csdn.net/wangpengfei163/article/details/51803911

4、Deep Learning(机器学习资料网站)

http://deeplearning.net/software_links/

5、Ubuntu18.04安装Theano出现“No module named 'theano.compat.six'”

https://blog.csdn.net/qq_43232373/article/details/82999076

6、Linux 下 Pylearn2的使用简介

http://www.360doc.com/content/19/0130/19/62040255_812209877.shtml

7、scikit-neuralnetwork 安装(良心帖子总结很全)

https://blog.csdn.net/hzt12345hf/article/details/73863147?utm_source=blogxgwz0

8、解决pandas matplotlib 3.5安装问题:

https://www.cnblogs.com/lxmhhy/p/6029465.html

9、ERROR: Failure:

(1)AttributeError (module 'sknn' has no attribute 'tests')

升级scikit-learn到合适版本

(2)AttributeError (module 'sknn' has no attribute 'tests')

lasagne没有用合适版本,使用代码:

sudo pip install git+https://github.com/Lasagne/Lasagne.git@0440814#egg=Lasagne==0.2-dev

10、安装cuda良心贴(cuda8,一定要注意显卡驱动程序版本和cuda的匹配,这个帖子不需要升级系统内核)

https://www.jianshu.com/p/c2215c74a8fe

11、import pylearn2 问题 No module named 'theano.compat.six'

https://blog.csdn.net/qq_43232373/article/details/82999076

https://www.cnblogs.com/lawliet-y/p/8434857.html

12、参考github链接

https://github.com/aigamedev/scikit-neuralnetwork/issues/224

https://github.com/aigamedev/scikit-neuralnetwork/issues?q=is%3Aopen+is%3Aissue

 

 类似资料: