Skip to content

Install nogil with pyenv on Linux

Sam Gross edited this page Apr 29, 2022 · 4 revisions

Install pyenv on Linux:

Install pyenv and restart the current shell:

curl https://pyenv.run | bash
exec $SHELL

If you have an existing pyenv environment, run "update" to grab the latest definition files:

pyenv update

Now you can install the "nogil" version of Python:

pyenv install nogil-3.9.10

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

pyenv global nogil-3.9.10

Now you can just run "python":

$ python
Python 3.9.10 (main, Apr 29 2022, 13:11:21)
[nogil, GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>