Python development setup

Home
Author: avolent
Updated on: May 2024
/programming/python development setup

Summary

The following pages is how I setup my python environments for development. It is something I wish I knew before starting and allows you to get up and running quickly.

Assumptions

Contents

  1. Useful Links
  2. References

Pyenv

Installation

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

The script will output what to do next. It may be different for your host.

# Load pyenv automatically by adding
# the following to ~/.bashrc:

export PATH="/home/user/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

Pipenv

Installation

echo 'export PATH="${HOME}/.local/bin:$PATH"' >> ~/.bashrc
python3 -m pip install --user pipenv

References

https://www.newline.co/courses/create-a-serverless-slackbot-with-aws-lambda-and-python/installing-python-3-and-pyenv-on-macos-windows-and-linux
https://gist.github.com/planetceres/8adb62494717c71e93c96d8adad26f5c

CSS is from Latex.css | Wiki built by avolent.io | Repository located on Github

Return to top