Unix & Linux Asked by Sam Dillard on February 17, 2021
I don’t understand what’s happening here. I’m on Mac.
When I run /usr/local/bin/python3
or /usr/local/bin/python3.8
, I get a No such file or directory
error. Any ideas what could be going on here?
Output of ls -l:
-rwxr-xr-x 1 admin 246 Oct 24 2019 ipython3
lrwxr-xr-x 1 admin 38 Aug 11 17:25 python3 -> ../Cellar/[email protected]/3.8.5/bin/python3
lrwxr-xr-x 1 admin 45 Aug 11 17:25 python3-config -> ../Cellar/[email protected]/3.8.5/bin/python3-config
lrwxr-xr-x 1 admin 40 Aug 11 17:25 python3.8 -> ../Cellar/[email protected]/3.8.5/bin/python3.8
lrwxr-xr-x 1 admin 47 Aug 11 17:25 python3.8-config -> ../Cellar/[email protected]/3.8.5/bin/python3.8-config
Most likely those symlinks point to files that don't exit. Possibly Homebrew upgraded Python to 3.8.6 but didn't update the symlinks for some reason.
To fix, try:
brew unlink [email protected] && brew link [email protected]
If that doesn't fix it, try:
brew reinstall [email protected]
Answered by satwell on February 17, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP