-
Notifications
You must be signed in to change notification settings - Fork 148
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
conda env create -f environment.yml #50
Comments
What version of pip do you have? |
I am using pip 23.0.1. and Ubuntu 22.04. I also will note that when manually installing the dependencies in the .yml file, the main issues were compatibility between mujoco and gym. For example, commenting out the gym=0.18.0 installation in the .yml file, I get the following errors: Pip subprocess error: × Building wheel for mujoco-py (pyproject.toml) did not run successfully.
|
I have the same issues on ubuntu 20.04 |
I was able to resolve the issue with gym from https://stackoverflow.com/questions/76129688/why-is-pip-install-gym-failing-with-python-setup-py-egg-info-did-not-run-succ I also ran into the second issue with mujoco-py but this issue went away after installing mujoco-py==2.0.2.5. |
Can I see your environment.yml file? I tried your fix for the second issue, but my pip installation fails when I try create the environment |
I have met same problem. Have you solved it right now? |
If you install mujoco-py-2.0.2.8, the environment will be created, but then you won't be able to use it due to compatibility issues. I tried to use the planning prompt - before which I downloaded the weights following the tutorial page - and it didn't work. Here is the latest environment file I have:
It gives the wheel for mujoco-py error in Ubuntu 20.4.6. I opened another issue and shared a working environment.yml file there ( #58 ), the one from Diffusion Policy paper, but they seem to use free-mujoco-py, among with different packages. |
Here's what worked for me (Ubuntu 22.04):
My name: diffuser
channels:
- defaults
- conda-forge
dependencies:
- python=3.8
- pip
- patchelf
- pip:
- -f https://download.pytorch.org/whl/torch_stable.html
- setuptools==65.5.0
- wheel<0.40.0
- mujoco-py==2.0.2.5
- numpy
- gym==0.18.0
- matplotlib==3.3.4
- torch==1.9.1+cu111
- typed-argument-parser
- git+https://github.com/Farama-Foundation/d4rl@f2a05c0d66722499bf8031b094d9af3aea7c372b#egg=d4rl
- scikit-image==0.17.2
- scikit-video==1.1.11
- gitpython
- einops
- ffmpeg
- ffprobe
- pillow
- tqdm
- pandas
- wandb
- flax >= 0.3.5
- jax <= 0.2.21
- ray==2.0.0
- crcmod # for fast gsutil rsync on large files
- google-api-python-client
- cryptography
- git+https://github.com/JannerM/doodad.git@janner
- gdown>=4.6.0 Other minor fixes I had to make:
|
After @NishanthARao 's version, which I couldn't build on Ubuntu 20.04, I tried using mujoco-py 2.0.2.5, and it worked. Here is the environment file:
I only had to change |
|
This environment.yml works for me (Ubuntu 22.04)
Moreover, change Summary about the configuration setup:
Also note here for completeness, mujoco-py does not contain the main mujoco program, so you have to install the main mujoco program first, before running the conda env create. The installation guide is https://github.com/openai/mujoco-py?tab=readme-ov-file#install-mujoco. Some handy code snippets:
Before running the python script, you may need to Another notable thing is that to run the python script in the repo, make that OpenGL Mesa is installed (as described in openai/mujoco).
If you don’t have sudo privilege, but the host already has libGL.so installed (check by
The purpose of the second line is to make the conda installed OpenGL related libraries linkable during compiling. Please click an emoji if this helps you! |
I cannot get the "conda env create -f environment.yml" command to work on my machine. I keep receiving the following errors:
Using cached gym-0.18.0.tar.gz (1.6 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Pip subprocess error:
Running command git clone --filter=blob:none --quiet https://github.com/JannerM/doodad.git /tmp/pip-req-build-926mvkq8
Running command git checkout -b janner --track origin/janner
Switched to a new branch 'janner'
Branch 'janner' set up to track remote branch 'janner' from 'origin'.
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
[end of output]
I have tried manually installing every dependency instead of using the .yml file but still have run into issues. Anyone have any fixes?
The text was updated successfully, but these errors were encountered: