-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1799105
commit 2ac94ae
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 python@3.12 | ||
$ brew unlink python@3.8 | ||
$ brew link --force python@3.12 | ||
``` | ||
|
||
```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. |