-
Notifications
You must be signed in to change notification settings - Fork 0
/
prep_env.sh
17 lines (16 loc) · 883 Bytes
/
prep_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# assuming we're in the CoGhent Git repo
sudo apt install virtualenv
virtualenv env
pip install -r requirements.txt
#todo a virtual environment or poetry env give problems to access the picamera, so no virt env for now...
sudo apt install graphviz libcairo2-dev pkg-config python3-dev libopencv-* pkg-config libgtk2.0-dev python3-opencv
sudo apt install python3-picamera2
sudo raspi-config nonint do_i2c 0 # make sure I2C is enabled on the board
#curl -sSL https://install.python-poetry.org | python3 -
#poetry install
#poetry shell
python -m pip install https://cdn.evilmadscientist.com/dl/ad/public/AxiDraw_API.zip --upgrade
python -m pip install git+https://github.com/devriesewouter89/DFRobot_RGB1602_RaspberryPi/ --upgrade
pip install -r requirements.txt
echo 'export PYTHONPATH=/home/pi/coghent/' >> ~/.bashrc
echo "Copy the .env.template and fill in the supabase credentials"