Install bullet3 and MuJoCo in Macbook

Posted 2018.07.01 04:37

Installation 

https://github.com/bulletphysics/bullet3

Follow the guide from the page above. 


screen -S jupyter

source activate tensorflow

jupyter notebook



Install MuJoCo


# create conda env with python v3.5.2
# https://github.com/openai/mujoco-py/issues/47#issuecomment-312551946
conda create --name gym python=3.5.2
source activate gym
mkdir -p ~/openai && cd ~/openai

# install gym
# https://github.com/openai/mujoco-py/issues/74#issuecomment-338410266
brew install cmake boost boost-python sdl2 swig wget

# see: https://github.com/openai/gym/issues/164#issuecomment-263785233
export MACOSX_DEPLOYMENT_TARGET=10.12
# pip install 'gym[all]'
git clone https://github.com/openai/gym.git
cd ./gym
pip install -e '.[all]'
brew install gcc@5


## use gcc5
# add to ~/.bash_profile
alias gcc='gcc-5'
alias cc='gcc-5'
alias g++='g++-5'
alias c++='c++-5'
# source ~/.bash_profile



## install mujoco v1.50 binaries
cd ~/openai
mkdir ~/.mujoco
# NOTE: remember to copy mujoco license key to ~/.mujoco/mjkey.txt


# download OSX binaries
wget https://www.roboti.us/download/mjpro150_osx.zip
unzip mjpro150_osx.zip && mv mjpro150  ~/.mujoco  

# wget https://www.roboti.us/download/mjpro131_osx.zip
# unzip mjpro131_osx.zip && mv mjpro131  ~/.mujoco 
git clone https://github.com/openai/mujoco-py.git
    
# pwd: cd ~/openai
rm -rf mujoco-py
git clone https://github.com/openai/mujoco-py.git
git checkout master             # mujoco v1.50
cd mujoco-py && python setup.py install
brew install gcc --without-multilib`
brew install gcc@6












____________________________________________

« PREV : 1 : ··· : 13 : 14 : 15 : 16 : 17 : 18 : 19 : 20 : 21 : ··· : 633 : NEXT »