ARISE-Initiative / robosuite

robosuite: A Modular Simulation Framework and Benchmark for Robot Learning
https://robosuite.ai
Other
1.18k stars 379 forks source link

Issue about install robosuite #485

Open Yingfan99327 opened 2 months ago

Yingfan99327 commented 2 months ago

Hi,

May I ask a problem about installing robosuite via the installation guidelines provided in the project webpage like pip install robosuite. I met some problems with errors as follows,

he 'linux/input.h' and 'linux/input-event-codes.h' include files are missing. You will have to install the kernel header files in order to continue:

      dnf install kernel-headers-$(uname -r)
      apt-get install linux-headers-$(uname -r)
      emerge sys-kernel/linux-headers
      pacman -S kernel-headers

  In case they are installed in a non-standard location, you may use
  the '--evdev-headers' option to specify one or more colon-separated
  paths. For example:

      python setup.py \
        build \
        build_ecodes --evdev-headers path/input.h:path/input-event-codes.h \
        build_ext --include-dirs path/ \
        install
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for evdev Failed to build evdev ERROR: Could not build wheels for evdev, which is required to install pyproject.toml-based projects

I tried some methods, but they didn't work. It would be great if you could offer me any help, thank you very much.

yl-wang996 commented 1 month ago

@Yingfan99327 This is because the corresponding wheel of the python is not exist, then the installer trying to build it.

Two solutions:

  1. change your Python version to which the prebuilt wheel file existed.
  2. delete pynput in setup.py, since it is just used in a few scripts.