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

Installation on new MacOS processors M1 and M2 with conda #985

Open
Didou09 opened this issue Nov 13, 2024 · 0 comments
Open

Installation on new MacOS processors M1 and M2 with conda #985

Didou09 opened this issue Nov 13, 2024 · 0 comments

Comments

@Didou09
Copy link
Member

Didou09 commented Nov 13, 2024

Installation instructions:

Python needs to be installed with architecture x86_64 (same as intel):

arch -x86_64 /usr/local/bin/brew install [email protected]

python -c "import platform; print(platform.architecture())"

Then create a virtual environment wit conda

# create environment with good architecture
CONDA_SUBDIR=osx-64 conda create -n myenv python=3.9

# activate environment
conda activate myenv

# check
python -c "import platform; print(platform.architecture())"

should return: ('64bit', '')

Then install desired package

CONDA_SUBDIR=osx-64 conda install package_name

# deactivate environment if desired
conda deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant