这是一个动态数据库加载的路径,出现报错如下:
python
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Python 3.8.13 (default, Mar 28 2022, 11:38:47)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mujoco_py
running build_ext
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libGLEW.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
这个并不要紧,只需要执行:unset LD_PRELOAD
即可
我用的是ubuntu18.04安装nginx
一般来说我们安装的nginx文件结构大致是这样的:
1. 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下
2. 程序文件在/usr/sbin/nginx
3. 日志放在了/var/log/nginx中
4. 并已经在/etc/init.d/下创建了启动脚本nginx
5. 默认的虚拟主机的目录设置在了/var/www/nginx-default (有的版本 默认的虚拟主机的目录设置在了/var/www, 请参考/etc/nginx/sites-available
文章目录写在开头:一、MuJoCo环境介绍:二、系统平台介绍:三、安装 MuJoCo:3.1 获取许可证3.2 下载源文件四、安装 mujoco-py五、最后解决方案:
写在开头:
本文写在笔者学习了强化学习算法 DQN,PG 和 DDPG 之后
之所以要安装 MuJoCo,是为了尝试 PPO 算法
之前尝试安装 RLBench 去验证学过的几个算法的时候,花费了整整 3 天没有成功,一把辛酸泪~
所以这次看到 MuJoCo 这个环境也是和机器人相关,想再次尝试一下
希望我踩过的坑可以帮助同道中人少一点痛
用sudo python3 setup.py install不行,会报错。改为 python3.9 setup.py install后成功。怀疑是python版本与mujoco——py的对应问题,不去深究。最终只成功安装了mujoco150。主要是要成功安装setup.py。
报错记录:
apt update
ERROR: ld.so: object './libadd_c.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object './libadd_c.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR:
cd ~/.mujoco
# 把安装包下载到该目录
wget https://mujoco.org/download/mujoco210-linux-x86_64.tar.gz
tar -zxvf mujoco210-
参考链接:
Failed to load OpenGL: Found 0 GPUs for rendering. Using device 0.
Desktop (please complete the following information):
OS: ubuntu 20.04
Python Version 3.8.10
Mujoco Version 2.1
mujoco-
安装Mujoco和Mujoco-py的时候踩了不少坑,在Github上找到了解决方法,记录一下。
Mujoco和Mujoco-py的安装教程参考如下
Windows10
win10安装mujoco200,mujoco_py2.0.2.9,gym
WIN10系统安装gym、mujoco以及Atari
MuJoCo.py win10 安装 笔记
Linux
Linux系统 Ubuntu18.04 成功安装Mujoco、mujoco_py
安装流程不再赘述
Linux上的安装基本很顺利,出现问题先检查路径设置和版
编译ROS工程的过程中,因为安装了anaconda导致系统库的路径被覆盖掉,因而报错的时候
runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib
首先查看路径,可以看到返回结果中,第一个查找路径是anaconda的。
export $PATH
bash: export: `/home/rw/anaconda3/bin:/home/rw/anaconda3/condabin:/home/rw/.local/bin:/usr/lo