How to use a specific python version at venv creation?

94 Views Asked by At

I'd like to be able to specify in a file the python version to use for my project in order to retrieve it automatically at venv creation.

I manage to specify it manually but wonder if I could retrieve it from a conf file in the repo using that kind of trick:

python{my_version} -m venv .venv
0

There are 0 best solutions below