2

I am trying to remove all my python for reinstall them properly. I have check lot of stack overflow topic, and now I am at this point :

when I am doing

which python3

I have :

/usr/bin/python3

also, doing

ls -l /usr/bin/python*

give :

lrwxr-xr-x  1 root  wheel     75  4 avr  2020 /usr/bin/python -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x  1 root  wheel     82  4 avr  2020 /usr/bin/python-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
lrwxr-xr-x  1 root  wheel     75  4 avr  2020 /usr/bin/python2 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x  1 root  wheel     75  4 avr  2020 /usr/bin/python2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x  1 root  wheel     82  4 avr  2020 /usr/bin/python2.7-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
-rwxr-xr-x  1 root  wheel  31488 10 jul 00:26 /usr/bin/python3
lrwxr-xr-x  1 root  wheel     76  4 avr  2020 /usr/bin/pythonw -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
lrwxr-xr-x  1 root  wheel     76  4 avr  2020 /usr/bin/pythonw2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7

so clearly my last python3 to remove is : /usr/bin/python3

but when I am doing :

rm python3

I have the question :

override rwxr-xr-x  root/wheel restricted,compressed for python3? y       
rm: python3: Operation not permitted

and here I am completely block, what is the next step ?

I am doing that because that point on a python3.8 (install by brew) and what I want is a python3.7 so if you have a better solution than delete this version to reinstalle 3.7 I am also open to a solution, I am stuck with this issue

thanks

kilag
  • 429
  • 4
  • 16
  • [This post](https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula) has instructions on how to install specific versions of formulas using homebrew – Lisa Oct 09 '20 at 19:06
  • Same issue. Is there any solution here? – Tony Chou Aug 18 '21 at 16:11

1 Answers1

-2
sudo rm /usr/bin/python3

or

sudo rm -r usr/bin/python3
Andronicus
  • 24,333
  • 17
  • 47
  • 82
Metaljerk
  • 17
  • 2