当前位置:网站首页>Mujoco and mujoco_ Install libxcursor.so 1:NO such dictionary

Mujoco and mujoco_ Install libxcursor.so 1:NO such dictionary

2022-07-29 04:36:00 Obsession

One 、mojoco install

1. download mujoco200 and mjkey.txt

mojoco200+mjkey.txt
In the destination folder ( Environment folder ) Create folder .mojoco
Decompress the inside mujoco200 Put the folder in .mojoco Under the folder
And then put mikey.txt Files in .mujoco Next in the folder , Put another copy to .mujoco/mujoco200/bin Next

2. environment variable

open .bashrc file

vi ~/.bashrc

Add... To it :

export LD_LIBRARY_PATH=/mnt/e/EdgeDownload/spinningup/.mujoco/mujoco200/bin${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export MUJOCO_KEY_PATH=/mnt/e/EdgeDownload/spinningup/.mujoco${MUJOCO_KEY_PATH}

3. test

Here I have a Bug, Report error as libXcursor.so.1:NO such dictionary, It's like this , It took a long time to find out which library this is in , Can be installed

sudo apt-get install libxcursor-dev
cd /mnt/e/EdgeDownload/spinningup/.mujoco/mujoco200/bin
./simulate ../model/humanoid.xml

among /mnt/e/EdgeDownload/spinningup It's my environment directory
If successful, the following page appears
 Insert picture description here

Two 、mujoco_py install

1. Activate the virtual environment created before , I am here spinningup

conda activate spinningup

Execute the following commands in sequence :

sudo apt update
sudo apt-get install patchelf
sudo apt-get install python3-dev build-essential libssl-dev libffi-dev libxml2-dev
sudo apt-get install libxslt1-dev zlib1g-dev libglew1.5 libglew-dev python3-pip

2. install mujoco-py
Find a location to download mujocopy, Execute after finding the location

git clone https://github.com/openai/mujoco-py
cd mujoco-py
pip install -r requirements.txt
pip install -r requirements.dev.txt
pip3 install -e . --no-cache

Restart the computer, and then execute the following commands

conda activate spinningup
sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3
sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so
pip3 install -U 'mujoco-py<2.2,>=2.1'
cd examples #( To perform this step, you need to go to your download mujoco-py The location of , Get into mujoco-py Folder )
python3 setting_state.py

If successful, the following screen will appear
 Insert picture description here

原网站

版权声明
本文为[Obsession]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/210/202207290431280261.html