Skip to content

Need to run make install inside Docker container before we can run examples #9418

@wangkuiyi

Description

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    User用于标记用户问题

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions