Steps that worked (MuJoCo)
-
Try create conda env from file
$ conda env create -f environment.yml
-
or
~$ more ~/.condarc channels: - intel - defaults show_channel_urls: true conda create -n mujoco intelpython3_full python=**3.5.2**
-
Then
source activate mujoco
-
pip uninstall cython
-
pip install 'Cython>=0.27.2'
-
brew install gcc --without-multilib
-
unpack MuJoCo like this
~$ tree -L 2 .mujoco/ .mujoco/ └── mjpro150 ├── bin ├── doc ├── include ├── model └── sample
-
put mjkey.txt to ~/.mujoco
-
install MuJoCo to conda environment
pip install 'mujoco-py<1.50.2,>=1.50.1'
-
this should work
$ ipython import mujoco_py from os.path import dirname model = mujoco_py.load_model_from_path("path-to-mujoco-py-checkout/xmls/claw.xml") sim = mujoco_py.MjSim(model) print(sim.data.qpos) # [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] sim.step() print(sim.data.qpos) # [ 2.09217903e-06 -1.82329050e-12 -1.16711384e-07 -4.69613872e-11 # -1.43931860e-05 4.73350204e-10 -3.23749942e-05 -1.19854057e-13 # -2.39251380e-08 -4.46750545e-07 1.78771599e-09 -1.04232280e-08]
-
until this get fixed openai/mujoco-py#80 do
$ cd path-to-gym $ git remote add lobachevzky [email protected]:lobachevzky/gym.git $ git fetch lobachevzky $ git merge lobachevzky/master
https://github.com/openai/gym/pull/767/files#diff-3f48026043ba85dc635adababe52094cL12
-
intall Gym
$ pip install -e .
-
hw1 (master)$ bash demo.bash
should work now