Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.15 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.15 KB

Raspberry Pi

This repository holds the code that is run on the Raspberry Pi.

Set Up Python

Follow these directions to set up the Python envrionment so multiple Pi's can be worked on at once:

  1. Run the following:
    $ sudo apt-get update && sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl openssl bzip2 pkg-config libboost-python-dev libboost-thread-dev libbluetooth-dev libglib2.0-dev python-dev
  1. Install pyenv:
    $ curl https://pyenv.run | bash
  1. Add the following to your ~/.bashrc file:
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
  1. Restart your shell:
    $ exec $SHELL
  1. Install Python 3.6.0
    $ pyenv install 3.6.0
  1. Create a new virtualenv
    $ pyenv virtualenv 3.6.0 capstone-3.6.0
  1. Use the virtualenv:
    $ pyenv global capstone-3.6.0
  1. Install pybluez
    $ pip install pybluez pybluez[ble]

At this point, you should now have a virtualenv set up with the minimum requirements. Ensure to capture any other necessary steps in this README.