# Renku CLI not working (python path outdated)

**URL:** <https://renku.discourse.group/t/renku-cli-not-working-python-path-outdated/424>\
**Category:** General\
**Created:** [28 September 2021 14:31 UTC](https://renku.discourse.group/t/renku-cli-not-working-python-path-outdated/424 "2021-09-28T14:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiliGasser](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/liligasser/32/89_2.png) [@LiliGasser](https://renku.discourse.group/u/LiliGasser)\
**Post date:** [28 September 2021 14:31 UTC](https://renku.discourse.group/t/renku-cli-not-working-python-path-outdated/424/1 "2021-09-28T14:31:00Z")

</div>

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

```auto
lili@lililenovo:~$ which renku
/home/lili/.local/bin/renku

```

but renku commands cannot be executed and give the following error message:

```auto
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

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [28 September 2021 22:27 UTC](https://renku.discourse.group/t/renku-cli-not-working-python-path-outdated/424/2 "2021-09-28T22:27:57Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![LiliGasser](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/liligasser/32/89_2.png) [@LiliGasser](https://renku.discourse.group/u/LiliGasser)\
**Post date:** [29 September 2021 06:36 UTC](https://renku.discourse.group/t/renku-cli-not-working-python-path-outdated/424/3 "2021-09-29T06:36:54Z")

</div>

Hi @rrrrrok , and thank you!

In case someone else ends up in the same state, I reinstalled renku as follows:

```auto
python3 -m pip uninstall pipx
rm -rf ~/.local/pipx

python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install renku

```

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [29 September 2021 08:27 UTC](https://renku.discourse.group/t/renku-cli-not-working-python-path-outdated/424/4 "2021-09-29T08:27:28Z")

</div>

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!
