isl-org / isl-org/Open3D-ML

Installation issue in Apple MacBook Pro M1 Max chip ("Open3D was not built with PyTorch/TensorFlow support!")

Open
#557 3 comments 1 reaction 0 assignees View on GitHub
build/install issue
Dominant language
Python
Stars
2.3k
Forks
365
Avg merge
4h 6m
Merged PRs (30d)
1

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D-ML/issues).
- [X] I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### Steps to reproduce the issue

#### I installed Miniforge first and then Open3D, TensorFlow and PyTorch
```
conda create --name vision3d python=3.9
conda activate vision3d

pip install --upgrade pip
pip install open3d

pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu

conda install -c apple tensorflow-deps==2.6.0
pip install tensorflow-macos==2.6.0
pip install tensorflow-metal==0.1.2
```
#### Later I cloned Open3D-ML by:
```
git clone https://github.com/isl-org/Open3D-ML.git
cd Open3D-ML
```
#### Then, I set OPEN3D_ML_ROOT with:
```
source set_open3d_ml_root.sh
```

### Error message

```shell
python -c "import open3d.ml.torch as ml3d"
Traceback (most recent call last):
File "", line 1, in
File "/Users/username/miniforge3/envs/vision3d/lib/python3.9/site-packages/open3d/ml/torch/__init__.py", line 33, in
raise Exception('Open3D was not built with PyTorch support!')
Exception: Open3D was not built with PyTorch support!

python -c "import open3d.ml.tf as ml3d"
Init Plugin
Init Graph Optimizer
Init Kernel
Traceback (most recent call last):
File "", line 1, in
File "/Users/username/miniforge3/envs/vision3d/lib/python3.9/site-packages/open3d/ml/tf/__init__.py", line 33, in
raise Exception('Open3D was not built with TensorFlow support!')
Exception: Open3D was not built with TensorFlow support!
```

### Open3D, Python and System information

```markdown
- Operating system: (e.g. OSX 12.5)
- Python version: (e.g. Python 3.9.13)
- Open3D version: (0.15.1)
- System type: (apple-silicon)
- Is this remote workstation?: no
- How did you install Open3D?: (e.g. pip)
- Compiler version (if built from source): (e.g. gcc 13, clang 13) -- Not built from source
```

### Additional information
@YilingQiao, @germanros1987, @yxlao please help.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.