Dear renku team,
locally, I installed the renku CLI with pipx probably a year ago and have upgraded it a few times.
Now, it still is there
lili@lililenovo:~$ which renku
/home/lili/.local/bin/renku
but renku commands cannot be executed and give the following error message:
bash: /home/lili/.local/bin/renku: /home/lili/.local/pipx/venvs/renku/bin/python: bad interpreter: No such file or directory
Checking the above path, it points to a python in a conda-env which no longer exists. How can I update the python pointer?
Or is it better/easier to reinstall renku?
Thanks in advance for your help!
Cheers,
Lili
Hi @LiliGasser - if the conda environment where pipx
was installed is no longer available, you should remove pipx
, remove ~/.local/pipx
then reinstall it and use the new installation to reinstall renku
. Hope that helps!
Hi @rrrrrok , and thank you!
In case someone else ends up in the same state, I reinstalled renku as follows:
python3 -m pip uninstall pipx
rm -rf ~/.local/pipx
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install renku
1 Like
Thanks @LiliGasser! btw if you use python installed with brew
on a mac, this error will appear every time brew
decides to update your python installation (often without telling you…) so I think this snippet will be definitely be useful to others!