doc(py*): consistent Files & Install, add libzma-dev

This commit is contained in:
AJ ONeal
2023-10-24 05:35:06 +00:00
parent 1306fd6ebc
commit 389c67805d
4 changed files with 58 additions and 32 deletions

View File

@@ -7,9 +7,25 @@ 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
Make sure that you already have Xcode tools installed:
Install Xcode tools first:
```sh
xcode-select --install
@@ -25,7 +41,8 @@ sudo apt update
sudo apt install -y build-essential zlib1g-dev libssl-dev
# recommended
sudo apt install -y libreadline-dev libbz2-dev libsqlite3-dev libffi-dev
sudo apt install -y libreadline-dev libsqlite3-dev \
libffi-dev libbz2-dev liblzma-dev
```
## Cheat Sheet

View File

@@ -7,16 +7,30 @@ tagline: |
To update or switch versions, run `pyenv install -v 3` (or `3.10`, etc).
### 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 python3 on macOS
Make sure that you already have Xcode tools installed:
Install Xcode tools first:
```sh
xcode-select --install
```
You may also need to install Xcode proper from the App Store.
### How to Install python3 on Linux
Make sure that you already have the necessary build tools installed:
@@ -27,18 +41,8 @@ sudo apt update
sudo apt install -y build-essential zlib1g-dev libssl-dev
# recommended
sudo apt install -y libreadline-dev libbz2-dev libsqlite3-dev
```
### Files
These are the files / directories that are created and/or modified with this
install:
```text
~/.bashrc (or your shell's equivalent)
~/.config/envman/PATH.env
~/.pyenv
sudo apt install -y libreadline-dev libsqlite3-dev \
libffi-dev libbz2-dev liblzma-dev
```
## Cheat Sheet

View File

@@ -7,16 +7,30 @@ tagline: |
To update or switch versions, run `pyenv install -v 2` (or `2.6`, etc).
### 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 python2 on macOS
Make sure that you already have Xcode tools installed:
Install Xcode tools first:
```sh
xcode-select --install
```
You may also need to install Xcode proper from the App Store.
### How to Install python2 on Linux
Make sure that you already have the necessary build tools installed:
@@ -27,19 +41,10 @@ sudo apt update
sudo apt install -y build-essential zlib1g-dev libssl-dev
# recommended
sudo apt install -y libreadline-dev libbz2-dev libsqlite3-dev
sudo apt install -y libreadline-dev libsqlite3-dev \
libffi-dev libbz2-dev liblzma-dev
```
### Files
These are the files / directories that are created and/or modified with this
install:
```text
~/.bashrc (or your shell's equivalent)
~/.config/envman/PATH.env
~/.pyenv
```
## Cheat Sheet

View File

@@ -8,4 +8,4 @@ description: |
See https://webinstall.dev/python
---
Alias for https://webinstall.dev/python
Alias for [python](../python/).