After updating to macos monterary, I lost the python binary file in an anaconda environment. All the library and binaries are there except the python executable file. I am wondering if someone faced this problem? How can I recover this environment?
Asked
Active
Viewed 77 times
-1
-
You can use `python3` or (better) install your own python as discussed e.g. https://stackoverflow.com/questions/71577626/issues-installing-python-3-8-10-on-macos-12-3-monterey – matt Jun 20 '22 at 02:49
-
Could you please list the `pyth*` files in environment's `bin/` directory? Like `ls -lh path/to/bin/pyth*`. (add result to question body) – merv Jun 20 '22 at 15:12
-
@merv I found the problem and the solution. My answer below explains the problem and what the solution was. – rando Jun 20 '22 at 15:45
1 Answers
0
I figured that my anaconda environment has a link to a python binary in /Library/Developer/CommandLineTools/usr/bin/python3
. For some reason, python binary was deleted from there when I upgraded my macOS. My solution was simply to install xcode one more time via the command: xcode-select --install

rando
- 365
- 3
- 12