Skip to content
Discussion options

You must be logged in to vote

Thank you @whodarewin!

hancongcong@bogon compiler % python -c 'import platform; print(platform.uname()[4])'
x86_64

This is the problem. You need a python installation that is arm64 too. Where is your python coming from? Check with which python.

In general newer versions of Xcode ship a python version that suites that purpose. Try this if you have a valid Xcode installation:

$ export MX_PYTHON=`xcode-select -p`/usr/bin/python3
$ file $MX_PYTHON # 
$ $MX_PYTHON -c 'import platform; print(platform.uname()[4])'

Per default mx picks up whatever python is available on $PATH. Otherwise, as above, you can choose a different python installation with the MX_PYTHON environment variable if you don…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@whodarewin
Comment options

@lewurm
Comment options

lewurm May 16, 2024
Collaborator

@whodarewin
Comment options

@lewurm
Comment options

lewurm May 17, 2024
Collaborator

Answer selected by lewurm
@whodarewin
Comment options

@lewurm
Comment options

lewurm May 21, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants