dwyl / dwyl/learn-python

Download the latest Python

Ouverte
#6 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
HTML
Étoiles
7
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.