Structurize UNIX/MacOS into a separate subsection

This commit is contained in:
Ivan Pozdeev 2023-07-23 22:10:32 +03:00
parent 87ce0a1704
commit d231de5923

View File

@ -200,7 +200,9 @@ As far as Pyenv is concerned, version names are simply directories under
## Installation ## Installation
### Getting Pyenv ### Getting Pyenv
#### Homebrew in macOS
#### UNIX/MacOS
##### Homebrew in macOS
1. Consider installing with [Homebrew](https://brew.sh): 1. Consider installing with [Homebrew](https://brew.sh):
```sh ```sh
@ -234,19 +236,7 @@ As far as Pyenv is concerned, version names are simply directories under
~~~ ~~~
#### Windows ##### Automatic installer
Pyenv does not officially support Windows and does not work in Windows outside
the Windows Subsystem for Linux.
Moreover, even there, the Pythons it installs are not native Windows versions
but rather Linux versions running in a virtual machine --
so you won't get Windows-specific functionality.
If you're in Windows, we recommend using @kirankotari's [`pyenv-win`](https://github.com/pyenv-win/pyenv-win) fork --
which does install native Windows Python versions.
#### Automatic installer (for UNIX systems)
`curl https://pyenv.run | bash` `curl https://pyenv.run | bash`
@ -254,7 +244,7 @@ For more details visit our other project:
https://github.com/pyenv/pyenv-installer https://github.com/pyenv/pyenv-installer
#### Basic GitHub Checkout ##### Basic GitHub Checkout
This will get you going with the latest version of Pyenv and make it This will get you going with the latest version of Pyenv and make it
easy to fork and contribute any changes back upstream. easy to fork and contribute any changes back upstream.
@ -270,6 +260,18 @@ easy to fork and contribute any changes back upstream.
cd ~/.pyenv && src/configure && make -C src cd ~/.pyenv && src/configure && make -C src
``` ```
#### Windows
Pyenv does not officially support Windows and does not work in Windows outside
the Windows Subsystem for Linux.
Moreover, even there, the Pythons it installs are not native Windows versions
but rather Linux versions running in a virtual machine --
so you won't get Windows-specific functionality.
If you're in Windows, we recommend using @kirankotari's [`pyenv-win`](https://github.com/pyenv-win/pyenv-win) fork --
which does install native Windows Python versions.
### Set up your shell environment for Pyenv ### Set up your shell environment for Pyenv
**Upgrade note:** The startup logic and instructions have been updated for simplicity in 2.3.0. **Upgrade note:** The startup logic and instructions have been updated for simplicity in 2.3.0.