Skip to content

Commit

Permalink
fix env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahBarrett98 committed Feb 27, 2021
1 parent 448ba16 commit 48123e3
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 32 deletions.
77 changes: 77 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
absl-py==0.11.0
Adafruit-GPIO==1.0.3
Adafruit-PureIO==1.1.8
Adafruit-SSD1306==1.6.2
asn1crypto==0.24.0
astor==0.8.1
astunparse==1.6.3
atari-py==0.2.6
cachetools==4.2.1
certifi==2018.8.24
cffi==1.14.5
chardet==3.0.4
cloudpickle==1.6.0
cryptography==2.6.1
cycler==0.10.0
entrypoints==0.3
enum34==1.1.10
flatbuffers==1.12
future==0.18.2
gast==0.3.3
google-auth==1.27.0
google-auth-oauthlib==0.4.2
google-pasta==0.2.0
grpcio==1.32.0
gym==0.18.0
-e git+https://github.com/convergencelab/RealDilemma@079f75de6c6f24607fa362cc4e8032c100f84c57#egg=gym_pibot&subdirectory=src/DRL/gym-pibot
h5py==2.10.0
idna==2.6
importlib-metadata==3.4.0
imutils==0.5.4
joblib==1.0.1
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver==1.3.1
Markdown==3.3.3
matplotlib==3.3.4
numpy==1.20.1
oauthlib==3.1.0
opencv-python==4.5.1.48
opt-einsum==3.3.0
pandas==1.2.2
-e git+https://github.com/convergencelab/RealDilemma@079f75de6c6f24607fa362cc4e8032c100f84c57#egg=PiBot&subdirectory=Pi/PiBot
Pillow==7.2.0
protobuf==3.13.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycairo==1.20.0
pycosat==0.6.3
pycparser==2.20
pyglet==1.5.0
pyparsing==2.4.7
pyserial==3.5
python-dateutil==2.8.1
pytz==2021.1
pyxdg==0.25
requests==2.21.0
requests-oauthlib==1.3.0
RPi.GPIO==0.7.0
rsa==4.7.1
ruamel.yaml==0.16.12
ruamel.yaml.clib==0.2.2
scipy==1.6.1
SecretStorage==2.3.1
six==1.15.0
spidev==3.5
ssh-import-id==5.7
stable-baselines==2.10.1
tensorboard==2.4.1
tensorboard-plugin-wit==1.8.0
tensorflow @ https://github.com/bitsy-ai/tensorflow-arm-bin/releases/download/v2.4.0-rc2/tensorflow-2.4.0rc2-cp37-none-linux_armv7l.whl
tensorflow-estimator==2.4.0
termcolor==1.1.0
typing-extensions==3.7.4.3
urllib3==1.24.1
Werkzeug==1.0.1
wrapt==1.12.1
zipp==3.4.0
64 changes: 32 additions & 32 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
#!bin/bash
# on a fresh pi:
pip3 install virtualenv
cd ./envs/tf2_stable_baselines
virtualenv tf2_stable_baselines
cd bin
source ./activate
cd ../
pip install -r requirements.txt
pip3 install -U numpy

# install local packages
cd ../../Pi
pip install -e PiBot # PiBot is also a package in pip so need to be careful bout this
cd ../src/DRL
pip install -e gym-pibot

# https://github.com/sophiagu/stable-baselines-tf2
# find the installation of stable_baselines
cd ~
path=$(find . -type d -name "stable_baselines")
echo $path
rm -r $path
# install tf2 version
git clone https://github.com/sophiagu/stable-baselines-tf2
# copy the installation and remove from download location
mkdir $path
cp -r stable-baselines-tf2/* $path
sudo rm -r stable-baselines-tf2

# lastly install tf2
pip3 install https://github.com/bitsy-ai/tensorflow-arm-bin/releases/download/v2.4.0-rc2/tensorflow-2.4.0rc2-cp37-none-linux_armv7l.whl
#!bin/bash
# on a fresh pi:
pip3 install virtualenv
cd ~
virtualenv tf2_stable_baselines
cd tf2_stable_baselines/bin
source ./activate
cd ../../RealDilemma
pip install -r requirements.txt
pip3 install -U numpy

# install local packages
cd Pi
pip install -e PiBot # PiBot is also a package in pip so need to be careful bout this
cd ../src/DRL
pip install -e gym-pibot

# https://github.com/sophiagu/stable-baselines-tf2
# find the installation of stable_baselines
cd ~
path=$(find . -type d -name "stable_baselines")
echo $path
rm -r $path
# install tf2 version
git clone https://github.com/sophiagu/stable-baselines-tf2
# copy the installation and remove from download location
mkdir $path
cp -r stable-baselines-tf2/* $path
sudo rm -r stable-baselines-tf2

# lastly install tf2
pip3 install https://github.com/bitsy-ai/tensorflow-arm-bin/releases/download/v2.4.0-rc2/tensorflow-2.4.0rc2-cp37-none-linux_armv7l.whl

0 comments on commit 48123e3

Please sign in to comment.