dwyl / dwyl/learn-python

Download the latest Python

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.