First things first, my terminal path is /opt/homebrew/bin /opt/homebrew/sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin
. I’m on a M1 Mac running Monterey. I installed Python using Homebrew.
A few months ago, something weird changes with my system, maybe due to Xcode being installed. Basically, if I have build system set to ‘automatic’ and try to build a Python file, I get bash: python: command not found
. Path in SublimeText shows as [path: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
.
If I set build system to ‘Python’, for some reason it’s running the wrong Python. If I print sys.path
, I get: ['/Users/myname/myfolder/', '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python38.zip', '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8', '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/lib-dynload', '/Users/myname/Library/Python/3.8/lib/python/site-packages', '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages']
I know I can make a custom build system to point to where my Python should be run from (/opt/homebrew/bin/
), but I created a whole other issue when I tried to do that. Shouldn’t I be able to leave the build system on Automatic??