kevinzakka / mink

Python inverse kinematics based on MuJoCo
https://kevinzakka.github.io/mink/
Apache License 2.0
233 stars 8 forks source link

Is it possible to do a conda install version #23

Closed kelejichi6463 closed 4 days ago

kelejichi6463 commented 2 weeks ago

Hello author, I get an error when installing with PIP that there is no suitable mink version, so I would like to ask you if it is possible to make an installation version of conda. Thank you very much

jonzamora commented 2 weeks ago

Yeah, you can try this environment.yaml

name: mink
channels:
  - conda-forge
  - defaults
dependencies:
  - python=3.10
  - pip
  - pip:
      - mink[examples]

Then, just run conda or mamba like so: mamba env create -f environment.yaml and mamba activate mink. You should be able to run mink and its related examples after this.

kevinzakka commented 2 weeks ago

@kelejichi6463 Can I have some more information? Python version, OS, commands run, etc.

kelejichi6463 commented 2 weeks ago

@jonzamora It works! Great! Thank you jonzamora!

kelejichi6463 commented 2 weeks ago

@kevinzakka Hi, kevinzakka, My python version is 3.10.14, OS is ubuntu, and I make a env for pink, it works well~

kelejichi6463 commented 2 weeks ago

@jonzamora This method can be successfully installed on one computer, but it requires additional manual installation of some packages. When installing on another computer, an error occurred midway, and reinstallation prompted: CondaValueError: prefix already exists: /home/XXX/anaconda3/envs/mink .

jonzamora commented 2 weeks ago

@kelejichi6463 Try to update the environment like this

mamba env update -f environment.yaml
# or
conda env update -f environment.yaml

Assuming you just need to update the existing mink environment with additional packages you've added to environment.yaml.

kevinzakka commented 4 days ago

I can't really reproduce this issue. mink has worked for me on multiple platforms with the only requirement being python>=3.9. Going to close, but feel free to re-open if there are other issues that persist with a clean environment install.

Also thanks @jonzamora for the help!