isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.39k stars 2.3k forks source link

python version isssue in building open3d from source #6469

Open Gopi-GK02 opened 11 months ago

Gopi-GK02 commented 11 months ago

Checklist

Steps to reproduce the issue

I am trying to install the open3d from source. Ran into issues with python version during build.

Error message

-- CMAKE_BUILD_TYPE is set to Release.
-- Downloading third-party dependencies to /home/user/Gopi/Open3D/3rdparty_downloads
CMake Deprecation Warning at CMakeLists.txt:189 (cmake_policy):
  The OLD behavior for policy CMP0072 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- Open3D 0.17.0+61671310a
-- Could NOT find Python3 (missing: Development Development.Module Development.Embed) (found suitable version "3.9.5", minimum required is "3.6")
CMake Error at CMakeLists.txt:333 (message):
  BUILD_PYTHON_MODULE=ON requires Python >= 3.6.  Please ensure it is in
  PATH.

-- Configuring incomplete, errors occurred!

Open3D, Python and System information

- Operating system: Ubuntu 20
- Python version: Python 3.8 
- Cmake version: 3.27
- System architecture: jetson 
- Is this a remote workstation?:no
- How did you install Open3D?:build from source
- Compiler version (if built from source): gcc 9.4.0

Additional information

No response

srivatsanadi commented 8 months ago

Any updates on this issue? It would be wonderful, if anyone can provide a fix for this one.

Thanks.

saurabheights commented 8 months ago

@Gopi-GK02 @srivatsanadi Notice that cmake complains about not finding Development Development.Module Development.Embed, i.e. it finds Interpreter module, but not other modules. See https://github.com/isl-org/Open3D/blob/main/CMakeLists.txt#L328

You are probably missing python development packages.

If you follow docs, then python3-dev should have been installed via install_deps_ubuntu.sh