win7下安裝gluon步驟

1、預準備:
Git:https://git-for-windows.github.io/4
anaconda:https://www.anaconda.com/download/
git和anaconda需要先安裝好,anaconda可以根據使用的Python版本來進行選擇或者安裝最新版本指定Python環境。
2、環境配置
打開Git命窗口,依次執行如下命令:

git clone https://github.com/mli/gluon-tutorials-zh
cd gluon-tutorials-zh
conda env create -f environment.yml
activate gluon

這個過程會自動下載安裝所需的依賴包並激活環境(mxnet也會被下載安裝)

然後安裝notedown,運行Jupyter並加載notedown插件:
pip install https://github.com/mli/notedown/tarball/master
jupyter notebook –NotebookApp.contents_manager_class=’notedown.NotedownContentsManager’
3、jupyter安裝配置
然後先生成jupyter配置文件(如果已經生成過可以跳過)
jupyter notebook –generate-config
將下面這一行加入到生成的配置文件的末尾(Linux/macOS一般在~/.jupyter/jupyter_notebook_config.py)
c.NotebookApp.contents_manager_class = ‘notedown.NotedownContentsManager’
之後就只需要運行jupyter notebook即可。
注:配置jupyter notebook默認目錄,打開開始生成的jupyter配置文件:/jupyter_notebook_config.py
找到c.NotebookApp.notebook_dir = ’ ’ 把前面的#號去掉,然後在‘ ’填入你想修改後的默認路徑即可,然後保存關閉
4、再次使用jupyter notebook
如果下次想再次進入jupyter notebook時,只需要打開Git命令窗口,輸入:

activate gluon
jupyter notebook

這裏寫圖片描述
然後瀏覽器會自動打開http://localhost:8888 ,就可以查看和運行各個教程了。

以上是CPU版本的安裝,GPU的需要等待一些時間,對於Gluon的使用,大家可以多看官網
Gluon官方論壇
課程安排及安裝介紹

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章