Skip to content

Install nogil with pyenv on macOS

Sam Gross edited this page Jan 30, 2023 · 3 revisions

For a detailed instructions on installing pyenv on macOS, see the pyenv README.

Install pyenv with Homebrew. You will want pyenv v2.3.11 or newer for the most recent version of nogil Python:

brew update
brew install pyenv

Now you can nogil Python:

pyenv install nogil-3.9.10-1

To use the "nogil" version as your default version run:

pyenv global nogil-3.9.10-1

Now you can just run "python":

$ python
Python 3.9.10 (main, Jan 25 2023, 12:40:53)
[nogil, Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>