dwyl / dwyl/learn-python

Download the latest Python

未关闭
#6 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
HTML
星标
7
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Check your `python` version by running the following command:
```sh
python --version
```

If you see an older version e.g:

```sh
Python 2.7.16
```

First try:

```sh
python3 --version
```

Use [Homebrew](https://brew.sh) to install the latest version:

```
brew install python
```

Or if you prefer to use an installer,
follow the instructions to download/install the latest version:
https://www.python.org/downloads/mac-osx

### Set `python3` as the default version of Python on Mac/Linux:

Locate the `python3` binary:

```
which python3
/usr/bin/python3
```

Create symbolic link:

```
ln -s -f /usr/local/bin/python3 /usr/local/bin/python
```

Confirm it worked:

```
python --version
Python 3.9.0
```

## `Pip`

You also need `pip` the `Python` Package Manger.
Check if you have it by running the following command:

```sh
pip --version
```

If you see a recent version e.g. `20.2`
you're all set to install `MkDocs`.

If you see "not found":

```
zsh: command not found: pip
```

### Download + install the latest pip:

```
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
```

You should see:

```
Successfully installed pip-20.2.4 wheel-0.35.1
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。