Browse Source

Merge pull request #796 from PeterDaveHello/patch-1

Syntax highlight in README.md
pull/798/head
Yamashita, Yuu 7 years ago
committed by GitHub
parent
commit
4f719b7909
1 changed files with 27 additions and 22 deletions
  1. +27
    -22
      README.md

+ 27
- 22
README.md View File

@ -190,18 +190,19 @@ easy to fork and contribute any changes back upstream.
pyenv repo is cloned and add `$PYENV_ROOT/bin` to your `$PATH` for access
to the `pyenv` command-line utility.
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
```sh
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
```
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
**Ubuntu and Fedora note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.
3. **Add `pyenv init` to your shell** to enable shims and autocompletion.
Please make sure `eval "$(pyenv init -)"` is placed toward the end of the shell
configuration file since it manipulates `PATH` during the initialization.
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
```sh
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
```
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
**Ubuntu and Fedora note**: Modify your `~/.bashrc` file instead of `~/.bash_profile`.
@ -213,14 +214,14 @@ easy to fork and contribute any changes back upstream.
4. **Restart your shell so the path changes take effect.**
You can now begin using pyenv.
$ exec $SHELL
```sh
$ exec $SHELL
```
5. **Install Python versions into `$PYENV_ROOT/versions`.**
For example, to download and install Python 2.7.8, run:
$ pyenv install 2.7.8
```sh
$ pyenv install 2.7.8
```
**NOTE:** If you need to pass configure option to build, please use
```CONFIGURE_OPTS``` environment variable.
@ -239,16 +240,20 @@ upgrade your installation at any time using git.
To upgrade to the latest development version of pyenv, use `git pull`:
$ cd ~/.pyenv
$ git pull
```sh
$ cd ~/.pyenv
$ git pull
```
To upgrade to a specific release of pyenv, check out the corresponding tag:
$ cd ~/.pyenv
$ git fetch
$ git tag
v0.1.0
$ git checkout v0.1.0
```sh
$ cd ~/.pyenv
$ git fetch
$ git tag
v0.1.0
$ git checkout v0.1.0
```
### Uninstalling pyenv
@ -266,9 +271,9 @@ uninstall from the system.
2. To completely **uninstall** pyenv, perform step (1) and then remove
its root directory. This will **delete all Python versions** that were
installed under `` `pyenv root`/versions/ `` directory:
rm -rf `pyenv root`
```sh
rm -rf `pyenv root`
```
If you've installed pyenv using a package manager, as a final step
perform the pyenv package removal. For instance, for Homebrew:

Loading…
Cancel
Save