Skip to content

Commit

Permalink
Create change-default-version.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin authored Aug 9, 2024
1 parent 1799105 commit 2ac94ae
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cheatsheets/python/install/change-default-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Change default version

## macOS

If you have multiple versions installed with Brew, you can set the new one as your default:

```sh
$ brew unlink [email protected]
$ brew unlink [email protected]
$ brew link --force [email protected]
```

```sh
$ python3 -V
```

```sh
$ which python
```

If another Python is picked ahead of the Brew versions, check the order of values in `PATH` and set in your shell config.

0 comments on commit 2ac94ae

Please sign in to comment.