1.安裝Cuda-8.0(參考安裝gpu 版本的tensorflow, www.reibang.com/p/c5ee19cdc9b6?)
2.基于Anaconda2 安裝Mxnet
( 因?yàn)閙xnet指導(dǎo)教程基于minianaconda3 python=3.6,直接按照教程安裝會(huì)報(bào)錯(cuò)睦尽。所以這里是基于anaconda2的安裝方法.)
? ? ? git clone https://github.com/mli/gluon-tutorials-zh
????? conda create -n gluon anaconda python=3.6
????? source activate gluon
? ? ? conda install? libgfortran
? ? ? pip install --pre mxnet-cu80
?????
3.測(cè)試
????? source activate gluon
????? python
????? import mxnet as mx
????? a = mx.nd.array([1,2,3],ctx=mx.gpu())
????? a
測(cè)試結(jié)果:>>> a
[ 1.? 2.? 3.]
<NDArray ? 3 @gpu(0)>
安裝成功屡律。
4. 安裝jupyter notebook (使用notedown插件讀取.md文件)
其實(shí)anaconda環(huán)境中已經(jīng)安裝了jupyter notebook,但是由于這個(gè)教程的源代碼是.md寫的椅您,直接打開是亂碼魄衅,所以需要安裝
notedown插件。
安裝notedown插件:
pip install https://github.com/mli/notedown/tarball/master
運(yùn)行 jupyter notebook:
jupyter notebook? --NotebookApp.contents_manager_class='notedown.NotedownContentsManager'
?
??????