Last active
October 25, 2018 07:20
-
-
Save rlan/3fadcb898288951fd53b03c6784d90db to your computer and use it in GitHub Desktop.
Install an OpenAI virtual environment (python 3)
This file contains hidden or 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
| #!/bin/sh | |
| # Install an OpenAI virtual environment (python 3) | |
| if [[ $# -eq 0 ]] ; then | |
| echo "No arguments supplied! Please give a folder name" | |
| exit 0 | |
| fi | |
| python3 -m venv $1 | |
| source $1/bin/activate | |
| pip install --upgrade pip | |
| # Install libraries | |
| pip install pylint | |
| pip install tensorflow | |
| pip install keras | |
| pip install jupyterlab | |
| pip install atari-py | |
| # Enter the virtual environment folder | |
| cd $1 | |
| # Pull repos and install | |
| # https://github.com/openai/gym#installing-everything | |
| git clone https://github.com/openai/gym.git | |
| cd gym | |
| pip install -e '.[all]' | |
| cd .. | |
| # https://github.com/openai/baselines#installation | |
| git clone https://github.com/openai/baselines.git | |
| echo ================================ | |
| echo $1 virtual environment created. | |
| echo To start: source $1/bin/activate | |
| echo To exit virtual environment: deactivate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment