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

Issue for import in python. No module named open3d #624

Closed
ljc19800331 opened this issue Oct 22, 2018 · 5 comments
Closed

Issue for import in python. No module named open3d #624

ljc19800331 opened this issue Oct 22, 2018 · 5 comments

Comments

@ljc19800331
Copy link

Hello open3d authors,

I have successfully compiled open3d from scratch and used for python before I reinstalled my ubuntu 16.04 system. After I reinstalled the system, I found the notice "no module named open3d" after I compile open3d with python binding with the command "-DPYTHON_EXECUTABLE:FILEPATH= ..". I checked multiple times but could not figure out the solution. Any methods I could check if I successfully link the open3d to my python interpreter? Thanks.

@yxlao
Copy link
Collaborator

yxlao commented Oct 22, 2018

Please see #420 (comment), especially #604 (comment).

In short, you don't need to run make install at all to install python binding. Now, inside your virtualenv, run:

make install-pip-wheel
# at 0.4.0 release, we'll change it to
# make install-pip-package

We're working on the documentation for the new way of building python package from source.

@ljc19800331
Copy link
Author

Thanks for your comment.

@versatran01
Copy link

I tried

sudo make install-pip-package

and still get no module named open3d. The command runs without error though.

@yxlao
Copy link
Collaborator

yxlao commented Oct 29, 2018

We do not need to use sudo unless we need to install to the system python -- e.g. in virtualenv, no sudo is required.

If there are issues, try splitting it into multiple steps

# Create Python package in build/lib/python_package
make python-package

# Create pip wheel in build/lib/python_package/pip_package
# After this command, check if a *.whl file is in build/lib/python_package/pip_package
# and install the wheel manually
make pip-package

See: http://www.open3d.org/docs/compilation.html#install-open3d-python-package

@HeuMindFusion
Copy link

error:No module named 'open3d_tutorial'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants