Home > front end >  Finding python on Apple Silicon
Finding python on Apple Silicon

Time:01-12

I have installed Python on my Apple Silicon (ARM64) machine, but it installs it as python3 and not python.

The problem is that I have a node.js project with dependencies which need python (and pip). They fail to build because they are unable to find python.

python3 is on the path at /opt/homebrew/python3 which in turn is a link to

/opt/homebrew/Cellar/[email protected]/3.10.8/bin/python3

I think I need to create a symbolic link python to /opt/homebrew/python3, but am unsure which path the use /opt/homebrew/python or /Applications/python or something else.

Or would it just be cleaner to create a virtualenv ?

CodePudding user response:

https://github.com/pyenv/pyenv might be able to solve your issue. Depending on the directory you are in, it will intelligently set your python version.

Here's a diagram that explains how python environments work

  • Related