21
loading...
This website collects cookies to deliver better user experience
I needed to install an older version of python on ubuntu
pyenv install --list
. It does reccomend updating pyenv if you suspect that it is missing one. At the time of writing this comes out to 532 different versions!pyenv install --list
pyenv install 3.8.12
. This will install it, but not make it active anywhere.pyenv install 3.8.12
pyenv local
will set the version of python that we wish to use while in this directory and any directory underneath of it while using the pyenv command.pyenv local python3.8.12
.python-version
files in the directory I ran it in, that contains simply the version number.3.8.12
pyenv exec pip install pipx
pyenv exec pipx run kedro new
python
its still my system python that I installed and set with update-alternatives. I am not sure if this is expected or based on how I had installed the system python previously, but it's what happened on my system.update-alternatives --query python
Name: python
Link: /home/walkers/.local/bin/python
Status: auto
Best: /usr/bin/python3
Value: /usr/bin/python3
pyenv exec python
in place of where I would normally run python and it worked for me. There is a whole package to get pyenv and venv to play nicely together, so I suspect that there is more to it, but this worked well for me and I was happy.pyenv exec python -m venv .venv --prompt $(basename $PWD)