From 63a08e8ace51c9c672fea4bb9efd430ec017e0b7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 9 Jan 2024 01:28:51 +0000 Subject: [PATCH] doc(pyenv): update deps, move Files, add ToC f: doc(pyenv) --- pyenv/README.md | 60 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/pyenv/README.md b/pyenv/README.md index 36b2c0a..c4e3a81 100644 --- a/pyenv/README.md +++ b/pyenv/README.md @@ -7,22 +7,6 @@ tagline: | To update run `pyenv update`. -### Files - -These are the files / directories that are created and/or modified with this -install: - -```sh -~/.config/envman/PATH.env -~/.pyenv/bin/ -~/.pyenv/shims/ - -# pyenv also loads shell hooks via -~/.bashrc -~/.config/fish/config.fish -~/.zshrc -``` - ### How to Install pyenv on macOS Install Xcode tools first: @@ -38,11 +22,21 @@ Make sure that you already have the necessary build tools installed: ```sh # required sudo apt update -sudo apt install -y build-essential zlib1g-dev libssl-dev +sudo apt install -y build-essential zlib1g-dev libssl-dev \ + libreadline-dev liblzma-dev # recommended -sudo apt install -y libreadline-dev libsqlite3-dev \ - libffi-dev libbz2-dev liblzma-dev +sudo apt install -y libsqlite3-dev libffi-dev libbz2-dev +``` + +### How to Install pyenv on Alpine + +```sh +sudo apk add \ + bash \ + build-base \ + git \ + zlib-dev ``` ## Cheat Sheet @@ -82,6 +76,34 @@ Revert back to your system python: pyenv global system ``` +## Table of Contents + +- Files +- List Installable Versions +- Install a Specific Version +- Install Local to a Project +- `virtualenv`s + - List Existing + - Create New + - Activate / Deactivate + - Delete + +### Files + +These are the files / directories that are created and/or modified with this +install: + +```sh +~/.config/envman/PATH.env +~/.pyenv/bin/ +~/.pyenv/shims/ + +# pyenv also loads shell hooks via +~/.bashrc +~/.config/fish/config.fish +~/.zshrc +``` + ### List all available python version ```sh