huggingface / simulate

🎢 Creating and sharing simulation environments for embodied and synthetic data research
https://huggingface.co/docs/simulate
Apache License 2.0
190 stars 13 forks source link

Installation from source on python 3.8 error #330

Closed natolambert closed 1 year ago

natolambert commented 2 years ago

Created a brand new python 3.8 conda environment, then tried to run from source:

(simulate-py3) Nathans-MacBook-Pro:simenv nato$ pip install -e  .
Obtaining file:///Users/nato/Documents/HuggingFace/dev/simenv
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Installing backend dependencies ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting numpy>=1.18
  Using cached numpy-1.23.4-cp38-cp38-macosx_11_0_arm64.whl (13.3 MB)
Collecting pyvista>=0.35
  Using cached pyvista-0.36.1-py3-none-any.whl (1.5 MB)
Collecting pybind11>=2.2
  Using cached pybind11-2.10.0-py3-none-any.whl (213 kB)
ERROR: Could not find a version that satisfies the requirement vtk>=9.0 (from simulate) (from versions: none)
ERROR: No matching distribution found for vtk>=9.0
thomwolf commented 2 years ago

does pip install vtk work?

natolambert commented 2 years ago

Does not with that version, which is the root of the error. @thomwolf . Had discussed with Ed but forgot to update the issue.

thomwolf commented 2 years ago

is it because you have an M1?

natolambert commented 2 years ago

Did some follow up and yes this is because of m1. I didn't notice until now because I have been using an environment with pyqt6.

Installing from conda works, but is really not lightweight at all (adds a ton of other packages).

Looks like vtk has had a series of python installation issues, such as:

I still haven't found many people pointing at what my issue is. I feel like building from source would work, but we don't want users doing that.

natolambert commented 1 year ago

the reason was that vtk doesn't have python 3.8 wheels for apple silicon. Closing issue.