Higher-Kinded Type
Higher-Kinded Type

Reputation: 2054

brew: Not linking to the latest python (symlinks in /usr/local/opt)

Even after running brew link --overwrite [email protected], the symlink /usr/local/opt/python@3 does not point to version 3.10. Worse, it removed the /usr/local/opt/python symlink (that was also pointed to 3.9)

l /usr/local/opt/ | grep python
lrwxr-xr-x    29 vivekragunathan admin  2 Jun 12:07   python@3 -> ../Cellar/[email protected]/3.9.13_1/
lrwxr-xr-x    29 vivekragunathan admin 18 May 14:39   [email protected] -> ../Cellar/[email protected]/3.8.13_1/
lrwxr-xr-x    29 vivekragunathan admin  2 Jun 12:07   [email protected] -> ../Cellar/[email protected]/3.9.13_1/
lrwxr-xr-x    28 vivekragunathan admin  8 Jul 12:17   [email protected] -> ../Cellar/[email protected]/3.10.5/

What do I have to do so that I have symlinks python and python@3 under /usr/local/opt point to the latest version (3.10 now)?

Upvotes: 0

Views: 287

Answers (1)

chenrui
chenrui

Reputation: 9868

The reason why you saw python@3 was pointing to [email protected] is because python@3 is an alias to [email protected]. There is a WIP PR for migrating the alias to point to [email protected]`.

Upvotes: 1

Related Questions