安装gym,PyRep,RLbench

安装gym,PyRep,RLbench

写在前面

我无法让RLBench的example在wsl2上完整运行,始终会报错signal 11的错误,所以我切换到ubuntu20.04LTS上运行下列方法

环境

首先先创建一个python3.8的环境

conda create -n nnn python=3.8
# 我使用的是miniforge和mamba

Gym

然后这里在安装环境前,首先先满足gym==0.21.0,具体看下面链接
https://stackoverflow.com/questions/77124879/pip-extras-require-must-be-a-dictionary-whose-values-are-strings-or-lists-of

  1. pip install setuptools==65.5.0 pip==21 # gym 0.21 installation is broken with more recent versions
  2. pip install wheel==0.38.0

然后我会提供我安装的requirement.txt,复制在末尾

pip install -r requirement.txt


环境安装完成后

PyRep


准备安装pyrep
https://github.com/stepjam/PyRep
首先下载4.1 of CoppeliaSim(进入pyrep github下载)
解压缩
重命名为CoppeliaSim(单纯为为了好看,不做这一步也没事)
进入文件夹测试CoppeliaSim能不能运行
./coppeliaSim.sh
然后按照pyrep github 添加环境变量

gedit ~/.bashrc 
export COPPELIASIM_ROOT=EDIT/ME/PATH/TO/COPPELIASIM/INSTALL/DIR
#这里填你解压的文件夹的地址example:/home/nnn/CoppeliaSim
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COPPELIASIM_ROOT
export QT_QPA_PLATFORM_PLUGIN_PATH=$COPPELIASIM_ROOT

然后

source ~/.bashrc

接下来安装pyrep

sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev

git clone https://github.com/stepjam/PyRep.git
cd ./PyRep/
pip3 install .
#Successfully installed PyRep-4.1.0.3 cffi-1.16.0 pycparser-2.22
#测试安装是否成功

python ./examples/example_reinforcement_learning_env.py 
#Starting episode 0
#Starting episode 1
#Starting episode 2
#Starting episode 3
#Starting episode 4
#Done!
#[CoppeliaSim:loadinfo]   done.

RLbench

接下来安装RLbench

pip install git+https://github.com/stepjam/RLBench.git
#Successfully installed Pillow-10.4.0 natsort-8.4.0 pyquaternion-0.9.9 rlbench-1.2.0 scipy-1.10.1
#test

git clone https://github.com/stepjam/RLBench.git
cd ./RLBench/
python ./examples/single_task_rl.py
#Done
#[CoppeliaSim:loadinfo]   done.

All Done!

requirement.txt

absl-py==2.1.0
accelerate==0.33.0
aiobotocore==2.13.1
aiohttp==3.9.5
aioitertools==0.7.1
aiosignal==1.2.0
alabaster==0.7.12
ale-py==0.7.5
altair==5.0.1
antlr4-python3-runtime==4.9.3
anyio==4.2.0
appdirs==1.4.4
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
arrow==1.2.3
astroid==2.14.2
astropy==5.1
asttokens==2.0.5
async-lru==2.0.4
async-timeout==4.0.3
atomicwrites==1.4.0
attrs==23.1.0
Automat==20.2.0
autopep8==2.0.4
av
Babel==2.11.0
backcall==0.2.0
bcrypt==3.2.0
beautifulsoup4==4.12.3
binaryornot==0.4.4
bitarray==2.5.1
bkcharts==0.2
black==24.4.2
bleach==4.1.0
blinker==1.6.2
bokeh==3.1.1
boto3==1.34.82
botocore==1.34.82
Bottleneck==1.3.7
box2d-py==2.3.5
Brotli==1.0.9
cachetools==5.3.3
cbor==1.0.0
certifi==2024.7.4
cffi==1.15.0
chardet==4.0.0
charset-normalizer==2.0.4
click==8.1.7
cloudpickle==1.6.0
clyent
colabgymrender==1.0.2
colorama==0.4.6
colorcet==3.1.0
comm==0.2.1
configparser==7.0.0
constantly==23.10.4
contourpy==1.0.5
cookiecutter==2.6.0
cryptography==42.0.8
cssselect==1.2.0
cycler==0.11.0
Cython==0.29.37
cytoolz==0.12.2
d4rl==1.1
daal4py
dask==2023.5.0
datasets==2.20.0
datashader==0.15.2
datashape
debugpy==1.6.7
decorator==4.4.2
defusedxml==0.7.1
diff-match-patch==20200713
dill==0.3.8
distributed==2023.5.0
dm_control==1.0.20
dm-env==1.6
dm-tree==0.1.8
docker-pycreds==0.4.0
docopt==0.6.2
docstring-to-markdown==0.11
docutils==0.18.1
einops==0.8.0
entrypoints==0.4
et-xmlfile==1.1.0
etils==1.3.0
exceptiongroup==1.2.0
executing==0.8.3
fasteners==0.15
fastjsonschema==2.16.2
filelock==3.13.1
flake8==7.0.0
Flask==3.0.3
fonttools==4.51.0
free-mujoco-py==2.1.6
frozenlist==1.4.0
fsspec==2024.3.1
gensim==4.3.2
gitdb==4.0.11
GitPython==3.1.43
glfw==1.12.0
gmpy2==2.1.2
gql==0.2.0
graphql-core==1.1
greenlet==3.0.1
gym==0.21.0
gym-notices==0.0.8
h5py==3.11.0
hachoir==3.3.0
HeapDict==1.0.1
holoviews==1.17.1
huggingface-hub==0.24.2
hvplot==0.10.0
hydra-core==1.3.2
hyperlink==21.0.0
idna==3.7
imagecodecs==2023.1.23
ImageHash==4.3.1
imageio==2.9.0
imageio-ffmpeg==0.5.1
imagesize==1.4.1
imbalanced-learn==0.12.3
importlib-metadata==7.0.1
importlib-resources==6.1.1
incremental==22.10.0
inflection==0.5.1
iniconfig==1.1.1
intake==0.7.0
intervaltree==3.1.0
ipdb==0.13.13
ipykernel==6.28.0
ipython==8.12.3
ipython-genutils==0.2.0
ipywidgets==8.1.2
isort==5.13.2
itemadapter==0.3.0
itemloaders==1.1.0
itsdangerous==2.2.0
jaraco.classes==3.2.1
jdcal==1.4.1
jedi==0.18.1
jeepney==0.7.1
jellyfish==1.0.1
Jinja2==3.1.4
jmespath==1.0.1
joblib==1.4.2
json5==0.9.6
jsonschema==4.19.2
jsonschema-specifications==2023.7.1
jupyter==1.0.0
jupyter_client==8.6.0
jupyter-console==6.6.3
jupyter_core==5.5.0
jupyter-events==0.8.0
jupyter-lsp==2.2.0
jupyter_server==2.10.0
jupyter_server_terminals==0.4.4
jupyterlab==4.0.11
jupyterlab-pygments==0.1.2
jupyterlab_server==2.25.1
jupyterlab-widgets==3.0.10
keyring==24.3.1
kiwisolver==1.4.4
kornia==0.7.2
kornia_rs==0.1.3
labmaze==1.0.6
lazy-object-proxy==1.10.0
lckr_jupyterlab_variableinspector==3.1.0
linkify-it-py==2.0.0
llvmlite==0.40.1
lmdb==1.4.1
locket==1.0.0
lxml==5.2.1
lz4==4.3.3
Markdown==3.4.1
markdown-it-py==2.2.0
MarkupSafe==2.1.3
matplotlib==3.7.2
matplotlib-inline==0.1.6
mccabe==0.7.0
mdit-py-plugins==0.3.0
mdurl==0.1.0
mistune==2.0.4
#mjrl==1.0.0
mkl-fft==1.3.1
mkl-random==1.2.2
mkl-service==2.4.0
mock==5.1.0
monotonic==1.6
more-itertools==10.1.0
moviepy==1.0.3
mpi4py==3.1.4
mpmath==1.3.0
msgpack==1.0.3
mujoco==3.1.6
mujoco-py==2.1.2.14
multidict==6.0.4
multipledispatch==0.6.0
multiprocess==0.70.16
mypy==1.10.0
mypy-extensions==1.0.0
natsort==8.4.0
nbclient==0.8.0
nbconvert==7.16.4
nbformat==5.9.2
nest-asyncio==1.6.0
networkx==3.1
nltk==3.8.1
nose==1.3.7
notebook==7.0.8
notebook_shim==0.2.3
numba==0.57.1
numexpr==2.8.4
numpy==1.24.3
numpydoc==1.5.0
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-ml-py==12.535.161
nvidia-ml-py3==7.352.0
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.5.40
nvidia-nvtx-cu12==12.1.105
nvitop
olefile==0.46
omegaconf==2.3.0
opencv-python==4.10.0.84
opencv-python-headless==4.10.0.84
openpyxl==3.1.2
overrides==7.4.0
packaging==23.2
pandas==2.0.3
pandocfilters==1.5.0
panel==1.2.3
param==1.13.0
parsel==1.8.1
parso==0.8.3
partd==1.4.1
patchelf==0.17.2.1
pathspec==0.10.3
patsy==0.5.3
pep8==1.7.1
pexpect==4.8.0
pickleshare==0.7.5
pillow==10.3.0
pipreqs==0.5.0
pkgutil_resolve_name==1.3.10
platformdirs==3.10.0
plotly==5.22.0
pluggy==1.0.0
ply==3.11
pooch==1.7.0
proglog==0.1.10
prometheus-client==0.14.1
promise==2.3
prompt-toolkit==3.0.43
Protego==0.1.16
protobuf==4.23.3
psutil==5.9.0
ptyprocess==0.7.0
pure-eval==0.2.2
py==1.11.0
py-cpuinfo==9.0.0
pyarrow
pyarrow-hotfix==0.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pybullet==3.2.6
pycodestyle==2.11.1
pycosat==0.6.6
pycparser==2.21
pyct==0.5.0
pycurl
pydeck==0.8.0b4
PyDispatcher==2.0.5
pydocstyle==6.3.0
pyerfa==2.0.0
pyflakes==3.2.0
pygame==2.1.0
Pygments==2.15.1
pylint==2.16.2
pylint-venv==3.0.3
pyls-spyder==0.4.0
pyodbc==5.0.1
PyOpenGL==3.1.7
PyOpenGL-accelerate==3.1.7
pyOpenSSL==24.2.1
pyparsing==3.0.9
PyQt5
PyQt5-sip==12.13.0
PyQtWebEngine==5.15.6
pyquaternion==0.9.9
#PyRep==4.1.0.3
PySocks==1.7.1
pytest==7.4.4
pytest-instafail==0.3.0
python-dateutil==2.9.0.post0
python-json-logger==2.0.7
python-lsp-black==2.0.0
python-lsp-jsonrpc==1.1.2
python-lsp-server==1.10.0
python-slugify==5.0.2
python-snappy==0.6.1
pytoolconfig==1.2.6
pytz==2024.1
PyVirtualDisplay==3.0
pyviz_comms==3.0.2
PyWavelets==1.4.1
pyxdg==0.27
PyYAML==6.0.1
pyzmq==25.1.2
QDarkStyle==3.2.3
qstylizer==0.2.2
QtAwesome==1.2.2
qtconsole==5.5.1
QtPy==2.4.1
queuelib==1.6.2
referencing==0.30.2
regex==2023.10.3
requests==2.32.2
requests-file==1.5.1
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rich==13.3.5
#rlbench==1.2.0
rope==1.12.0
rpds-py==0.10.6
Rtree==1.0.1
ruamel.yaml
ruamel.yaml.clib==0.2.6
Cython
#ruamel-yaml-conda
s3fs==2024.3.1
s3transfer==0.10.1
sacremoses==0.1.1
safetensors==0.4.3
scikit-image==0.19.3
scikit-learn==1.3.0
scikit-learn-intelex
scipy==1.10.1
Scrapy==2.11.1
seaborn==0.13.2
SecretStorage==3.3.1
Send2Trash==1.8.2
sentry-sdk==2.5.1
service-identity==18.1.0
setproctitle==1.3.3
setuptools==66.0.0
shortuuid==1.0.13
sip==6.7.12
six==1.16.0
smart-open==5.2.1
smmap==4.0.0
sniffio==1.3.0
snowballstemmer==2.2.0
sortedcollections==2.1.0
sortedcontainers==2.4.0
soupsieve==2.5
Sphinx==5.0.2
sphinx-rtd-theme==2.0.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
spyder==5.5.1
spyder-kernels==2.5.0
SQLAlchemy==2.0.25
stack-data==0.2.0
statsmodels==0.14.0
streamlit==1.32.0
subprocess32==3.5.4
swig==4.2.1
sympy==1.12
tables==3.8.0
tabulate==0.9.0
TBB
tblib==1.7.0
tenacity==8.2.2
termcolor==2.4.0
terminado==0.17.1
testpath==0.6.0
text-unidecode==1.3
textdistance==4.2.1
threadpoolctl==2.2.0
three-merge==0.1.1
tifffile==2023.4.12
tinycss2==1.2.1
tldextract==3.2.0
tokenizers==0.19.1
toml==0.10.2
tomli==2.0.1
tomlkit==0.11.1
toolz==0.12.0
torch
torchvision==0.18.1
tornado==6.3.3
tqdm==4.66.4
traitlets==5.14.3
transformers
transforms3d==0.4.2
triton==2.3.1
Twisted==23.10.0
typing_extensions==4.11.0
tzdata==2023.3
uc-micro-py==1.0.1
ujson==5.10.0
unicodedata2==15.1.0
Unidecode==1.2.0
urllib3==1.26.18
#vima-bench==0.0.1
w3lib==2.1.2
wandb==0.9.1
watchdog==4.0.1
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.8.0
Werkzeug==3.0.3
whatthepatch==1.0.2
wheel==0.38.4
widgetsnbextension==4.0.10
wrapt==1.14.1
wurlitzer==3.0.2
xarray==2022.11.0
xlrd==2.0.1
XlsxWriter==3.1.1
xvfbwrapper==0.2.9
xxhash==3.4.1
xyzservices==2022.9.0
yapf==0.40.2
yarg==0.1.9
yarl==1.9.3
zict==3.0.0
zipp==3.17.0
zope.interface==5.4.0
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值