Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wangkuiyi opened this issue Mar 27, 2018 · 2 comments
Closed
Labels
User 用于标记用户问题

Comments

@wangkuiyi
Copy link
Collaborator

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.

@wangkuiyi wangkuiyi added the User 用于标记用户问题 label Mar 27, 2018
@wanglei828
Copy link
Contributor

Before run the test, we need install the generated "whl" package using " pip install", the package is located in the "build/python/dist" directory.

@wangkuiyi
Copy link
Collaborator Author

wangkuiyi commented Mar 28, 2018

Got it. Thanks.

Is it possible that we don't run pip install (nor make install), but can import paddle from Python?

I am closing this issue, and leave the question in a new issue.

blacksheep-Aristotle pushed a commit to blacksheep-Aristotle/Paddle that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

2 participants