Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python3.8 no such file or directory when trying to git commit to bitbucket on mac

I am currently on a new mac with python 3.8.2 installed. I have a bitbucket repo I cloned down. When I modify a file and git add that works fine. But when I make a git commit I get this error message

env: python3.8: No such file or directory

My path env variable looks like this

PATH=/Users/rach/bin:/Users/rach/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

When I type whereis python3 I get

/usr/bin/python3

I cannot figure out why I can't make a git commit with python3 already installed and the location in the path

like image 721
Rach Doizl Avatar asked Oct 20 '20 15:10

Rach Doizl


1 Answers

Since you're using pre-commit, you can uninstall hooks by:

pre-commit uninstall

To install them again, run:

pre-commit install
like image 114
kenorb Avatar answered Nov 20 '22 03:11

kenorb