So I'm not exactly sure what I did but I was trying to upgrade from Python 3.4.3 (Miniconda 3) to Python 3.8.x and somewhere along the way I ended up deleting a folder or symbolic link.

My main issue is that when running something like

jupyter notebook from terminal I get bash: /usr/local/bin/jupyter: /usr/bin/python3: bad interpreter: No such file or directory as a response

Additionally when I type in pip3 --version I get back bash: /usr/bin/pip3: /usr/bin/python3: bad interpreter: No such file or directory

I'd really just like to delete Python 3, pip3, Miniconda3, and any system links/Path links and restart from scratch. I am also fairly new to this type of issue.

Any help would be appreciated.

  • 2
    You are probably better off backing up any important files or data and reinstalling with a fresh SD card image. This kind of problem can lead to problems months into the future. May 31, 2020 at 18:01
  • Thanks for the information, was hoping I wouldn't need to do that but oh well not much will be lost.
    – rk92
    May 31, 2020 at 20:02

1 Answer 1



You may be lucky and just be missing the symbolic link to /usr/bin/python3.7 as

/usr/bin/python3 -> python3.7

If not out of desperation you could try

sudo apt install --reinstall xxx

and try to get it to redo Python etc. but I've never tried it on anything as vital as this though.

  • Thanks for the reply. I decided to just save anything important (wasn't much) and wipe the SD card and start fresh. Was a good excuse to try out a new OS also.
    – rk92
    Jun 2, 2020 at 17:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.