Hi! Is it possible to pin python version used to c...
# troubleshooting
a
Hi! Is it possible to pin python version used to create virtualenvs? I use GCP instance and default Python version is 3.10+. I have problems installing target-bigquery with this python version, so installed (even globally) 3.6 using pyenv. python -V == 3.6 python3 -V == 3.6 But anyway after
meltano add loader target-bigquery
it creates new venv
.meltano/loaders/target-bigquery
using Python 3.10+
w
Meltano uses the Python executable and Python environment it was run with to create venvs. Your pyenv shims may not be fully applied to the current environment. How did you activate pyenv? One thing you could try is running
python -m meltano.cli add loader target-bigquery
, but if the pyenv shims are not working properly this may not work either.
d
Virtual environments don't pin the Python runtime, but I do that with
pyenv
and
pyenv-virtualenv
. Alternatively you could install python3.6 and update the system default to it using
update-alternatives
(doc link) but I'd strongly suggest pyenv