Created
June 10, 2016 13:19
-
-
Save algorithmdog/77fc5d459eebd235198e784b7044291f to your computer and use it in GitHub Desktop.
step by step install gym for mac os el capital
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mac OS: El captial | |
Environment: virtualenv | |
virtualenv ~/gym | |
source ~/gym/bin/activate | |
git clone https://github.com/openai/gym | |
cd gym | |
pip install -e . # minimal install, it should be okay witout error if using virtual env | |
#install all simulation games, require #cmake,#swig (it requires #pcre) | |
mkdir __install_swig/ | |
cd __install_swig/ | |
curl --remote-name ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz | |
tar -xzvf pcre-8.37.tar.gz | |
cd pcre-8.37 | |
./configure --prefix=/usr/local/pcre-8.37 | |
make | |
sudo make install | |
pcre-config --version #check pcre | |
#download swig from internet and save into the this folder | |
tar -xzvf swig-3.0.8.tar.gz | |
cd swig-3.0.8 | |
./configure | |
make | |
sudo make install | |
touch ~/.bashrc | |
echo 'LD_LIBRARY_PATH=/usr/local/lib:/usr/lib' >> ~/.bashrc | |
echo 'export LD_LIBRARY_PATH' >> ~/.bashrc | |
source ~/.bashrc | |
#install cmake | |
sudo brew update | |
sudo brew install cmake | |
sudo pip install -e .[all] | |
#run example test from gym website |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment