Need to run make install inside Docker container before we can run examples
Created by: wangkuiyi
Users must run make install as follows:
git clone https://github.com/paddlepaddle/paddle
cd paddle
docker build -t paddle:dev .
mkdir build
nvidia-docker run --rm -it -v $PWD:/paddle paddle:dev /bin/bash
$ cd /paddle/build
$ cmake ..
$ make -j56
After doing the above steps, we should have a built binary version of PaddlePaddle in ./paddle/build
, or /paddle/build
in the container. I suppose that in the container, we should be able to run
$ python python/tests/book/test_fit_a_line.py
However, if I do so, Python would complain that it cannot import paddle
.
It seems that we must run make install
after make
so could we run examples. This doesn't make sense.