File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,15 +11,11 @@ if which brew >/dev/null; then
1111else
1212 ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) "
1313fi
14- if brew cask --version | grep --quiet " Cask" > /dev/null; then
15- true
16- else
17- brew tap homebrew/cask
18- fi
1914
2015echo " --- Installing brew system dependencies ---"
21- hb_list=(cmake boost boost-python sdl2 swig wget curl )
16+ hb_list=(cmake boost boost-python3 sdl2 swig)
2217for item in " ${hb_list[@]} " ; do
18+ echo " Installing ${item} "
2319 brew info " ${item} " | grep --quiet " Not installed" && brew install " ${item} "
2420done
2521
@@ -28,13 +24,17 @@ if which conda >/dev/null; then
2824 echo " Conda is already installed"
2925else
3026 curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
31- bash Miniconda3-latest-MacOSX-x86_64.sh -b
27+ bash Miniconda3-latest-MacOSX-x86_64.sh -b -p ~ /miniconda3
3228 rm Miniconda3-latest-MacOSX-x86_64.sh
3329 echo ' . ~/miniconda3/etc/profile.d/conda.sh' >> ~ /.bash_profile
3430 source ~ /.bash_profile
3531fi
3632
3733echo " --- Installing Conda environment ---"
34+ if ! which conda > /dev/null; then
35+ # guard for when no Conda is found, e.g. in Colab
36+ export PATH=~ /miniconda3/bin:$PATH
37+ fi
3838if conda env list | grep " ^lab " > /dev/null; then
3939 echo " conda env lab is already installed"
4040else
Original file line number Diff line number Diff line change @@ -17,13 +17,17 @@ if which conda >/dev/null; then
1717 echo " Conda is already installed"
1818else
1919 curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
20- bash Miniconda3-latest-Linux-x86_64.sh -b
20+ bash Miniconda3-latest-Linux-x86_64.sh -b -p ~ /miniconda3
2121 rm Miniconda3-latest-Linux-x86_64.sh
2222 echo ' . ~/miniconda3/etc/profile.d/conda.sh' >> ~ /.bashrc
2323 source ~ /.bashrc
2424fi
2525
2626echo " --- Installing Conda environment ---"
27+ if ! which conda > /dev/null; then
28+ # guard for when no Conda is found, e.g. in Colab
29+ export PATH=~ /miniconda3/bin:$PATH
30+ fi
2731if conda env list | grep " ^lab " > /dev/null; then
2832 echo " conda env lab is already installed"
2933else
Original file line number Diff line number Diff line change @@ -47,4 +47,4 @@ dependencies:
4747 - gym[classic_control]
4848 - pybullet==2.8.4
4949 - roboschool==1.0.46
50- - atari-py
50+ - atari-py==0.2.6
You can’t perform that action at this time.
0 commit comments