Skip to content

Commit

Permalink
remove libgfortran from .yml, update dockerfile and install.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mli committed Oct 23, 2017
1 parent 45999b4 commit 1727cb3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:16.04

# install python and conda
RUN apt-get update && apt-get install -y python3 git wget bzip2
RUN apt-get update && apt-get install -y python3 git wget bzip2 libgfortran
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -b
ENV PATH /root/miniconda3/bin:$PATH
Expand Down
16 changes: 16 additions & 0 deletions chapter_preface/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ python -c "import pip; print(pip.pep425tags.get_supported())"
#### 症状: pip install mxnet 成功,但是import mxnet失败
##### 病情分析

如果看到这样的错误

```bash
ImportError: No module named mxnet
```
python无法找到mxnet,有可能系统上有多个python版本, 导致pip和python版本不一致

##### 药方
Expand Down Expand Up @@ -347,6 +351,18 @@ pip2 install mxnet --pre

如果不是简单的python2/3的问题,推荐修复默认调用的python。

##### 病情分析
假设你看到这个错误:

```bash
ImportError: libgfortran.so.3: cannot open shared object file: No such file or
directory
```

##### 药方
这个一般发生在Linux下。安装`libgfortran`就好,例如Ubuntu下可以`sudo apt-get
install libgfortran`

#### 症状:可以import mxnet,但是版本不正常(< 0.11.1b20170908)
##### 病情分析
安装时没有指定最新的版本
Expand Down
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: gluon
dependencies:
- python
- libgfortran
- jupyter
- matplotlib
- pandas
Expand Down

0 comments on commit 1727cb3

Please sign in to comment.