Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a different python executable #9

Open
zachdaniel opened this issue Jun 6, 2022 · 2 comments · May be fixed by #11
Open

Using a different python executable #9

zachdaniel opened this issue Jun 6, 2022 · 2 comments · May be fixed by #11

Comments

@zachdaniel
Copy link

Not sure if I'm even going in the right direction here. Mac recently stopped coming packaged with python 2.7 with the python executable, so now only python3 is available. Is there some way I can configure this to be used instead? I could probably make a copy of the executable I currently have, but that feels like a solution that will come with its own issues/break at some point.

@zachdaniel
Copy link
Author

This is the error that I get:

==> ex_termbox
cd c_src/termbox && CFLAGS=-fPIC ./waf configure --prefix=. && ./waf
env: python: No such file or directory
make: *** [c_src/termbox/build/src/libtermbox.a] Error 127
could not compile dependency :ex_termbox, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ex_termbox", update it with "mix deps.update ex_termbox" or clean it with "mix deps.clean ex_termbox"

@mhanberg
Copy link

You can do this to get a non versioned python executable on recent macos versions by adding the following to you path (assuming you have python3 installed via homebrew

export PATH="$brew_prefix/opt/[email protected]/libexec/bin:$PATH"

$brew_prefix being the appropriate homebrew prefix for you mac architecture, either /opt/hombrew or /usr/local.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants