安装gluon

来源:互联网 发布:mac怎么删除桌面文件 编辑:程序博客网 时间:2024/06/05 05:40

注:本次安装是在ubuntu 64 bit下进行
安装过程中的命令如下:
1、wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
2、bash Miniconda3-latest-Linux-x86_64.sh
3、sudo apt-get update
4、sudo apt-get install git
5、git clone https://github.com/mli/gluon-tutorials-zh
6、cd gluon-tutorials-zh
7、bash
8、conda env create -f environment.yml
9、source activate gluon
这时可以进入python测试一下安装情况
这里写图片描述

这时可能会出现mxnet导入不成功的问题,如出现如下提示:
Traceback (most recent call last):
File “”, line 1, in
File “/home/jinhanqi/.local/lib/python3.6/site-packages/mxnet/init.py”, line 25, in
from .base import MXNetError
File “/home/jinhanqi/.local/lib/python3.6/site-packages/mxnet/base.py”, line 111, in
_LIB = _load_lib()
File “/home/jinhanqi/.local/lib/python3.6/site-packages/mxnet/base.py”, line 103, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
File “/home/jinhanqi/miniconda3/envs/gluon/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libgfortran.so.3: cannot open shared object file: No such file or directory

此时显示缺少libgfortran.so.3,只需运行如下命令sudo apt-get install libgfortran3 参考:https://zhidao.baidu.com/question/1861582747838394787.html

10、pip install https://github.com/mli/notedown/tarball/master
11、sudo apt install screen
12、screen
13、source activate gluon
14这里写图片描述

jupyter notebook --NotebookApp.contents_manager_class='notedown.NotedownContentsManager'

此时会有一个链接:http://localhost:8888/?token=7e0800f9d71333ab92298b87b5304dd5dfcef7c8cca17007

后面是token

到此安装完成!congratulations!

原创粉丝点击