Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The git (or python) command requires the command line developer tools

This knowledge post isn't a duplication of other similar ones, since it's related to 12/September/2022 Xcode update, which demands a different kind of solution

I have come to my computer today and discovered that nothing runs on my terminal Every time I have opened my IDE (VS Code or PyCharm), it has given me this message in the start of the terminal.

I saw so many solutions, which have said to uninstall pyenv and install python via brew, which was a terrible idea, because I need different python versions for different projects.

Also, people spoke a lot about symlinks, which as well did not make any sense, because everything was working until yesterday.

Furthermore, overwriting .oh-my-zsh with a new built one did not make any difference.

like image 938
neoswf Avatar asked Sep 01 '25 17:09

neoswf


2 Answers

I was prompted to reinstall commandLine tools over and over when trying to accept the terms

I FIXED this by opening xcode and confirming the new update information

like image 159
wikimind Avatar answered Sep 04 '25 09:09

wikimind


in my case I had to open Xcode after installing the update to "fix" git

like image 41
Vagelis Avatar answered Sep 04 '25 08:09

Vagelis