Skip to content

Instantly share code, notes, and snippets.

@mudphone
Created April 14, 2020 21:40
Show Gist options
  • Save mudphone/6064fa59d1c003ef3d0958fad9530f9b to your computer and use it in GitHub Desktop.
Save mudphone/6064fa59d1c003ef3d0958fad9530f9b to your computer and use it in GitHub Desktop.

Update System

  • sudo apt-get update
  • sudo apt-get install emacs

Pyenv

  • git clone https://github.com/pyenv/pyenv.git ~/.pyenv
  • echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
  • echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
  • echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.profile
  • log out and back in
  • install build dependencies from: https://github.com/pyenv/pyenv/wiki
    • sudo apt-get update; sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
  • pyenv install --list
  • pyenv install 3.7.3
  • pyenv global 3.7.3
  • python --version
    • should show 3.7.3
  • mkdir -p ~/work/coral
  • cd ~/work/coral
  • pyenv local 3.7.3

Pipenv

  • pip install --user pipenv
  • if you receive this warning:
You are using pip version 19.0.3, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
  • upgrade pip: pip install --upgrade pip
  • add pipenv to PATH in ~/.bash_profile
    • export PIPENV_BIN="$HOME/.local/bin"
    • export PATH="$PIPENV_BIN:$PATH"
  • cd ~/work/coral
  • if python global is set to 3.7.3
    • pipenv --python `which python`
  • Note this message:
    • New python executable in /home/pi/.local/share/virtualenvs/coral-xi0Qt4P-/bin/python
  • pipenv shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment