sudo apt-get update
sudo apt-get install emacs
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
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