To specify the specific python version to use, you can specify it as follows in the .envrc
file
layout python /usr/bin/python3.11
I also needed to install the python-venv
package for python 3.11
❯ sudo apt install python3.11-venv
To specify the specific python version to use, you can specify it as follows in the .envrc
file
layout python /usr/bin/python3.11
I also needed to install the python-venv
package for python 3.11
❯ sudo apt install python3.11-venv
Source: https://github.com/direnv/direnv/wiki/Python#selecting-python-versions