-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
[Bug]: Installing PyBaMM
on M1
chip fails (both pip
and install from source)
#2346
Comments
I'm able to install pybamm on M1 from source, but maybe it's using Rosetta? |
I think so. #2072 looks related ( |
Actually this breaks numpy |
I managed to get it to install and sort of work.
I think using the intel64 binary, which I guess automatically runs under rosetta, seems to work? When I run a script after doing |
@savvn001's method on Python 3.8.10 + M2 MBP + MacOS 12.5 works for me - it did not work with 3.9. Specifically:
|
conda-forge should also work (no rosetta required) |
FYI the following worked for me on Python 3.9.13 + M2 Macbook Air + MacOS 13.2
|
I made it! Virtual environment manager: Steps:
I ran into some network problems: |
Out of curiosity has anyone checked if there's a performance difference between Conda/build-from-source and the rosetta options? |
Casadi has started building wheels for M1/M2 in their nightly-develop releases - https://github.com/casadi/casadi/releases/tag/nightly-develop |
Casadi 3.6.0 brings support for Apple Silicon: https://github.com/casadi/casadi/releases/tag/3.6.0 |
PyBaMM Version
all
Python Version
3.9
Describe the bug
PyBaMM
cannot be installed on anM1
mac frompip
as well as from source. I thinkcasadi
does not supportM1
chips?I was able to set everything up by installing
casadi
from source, and removingcasadi
as a dependency when installingPyBaMM
from source. Should this be documented in the installation page?Also, should we be specifically building
intel
wheels tillcasadi
supportsM1
wheels? This way users will get a "No matching distribution found for pybamm" error when installing throughpip
onM1
, rather than than the installation failing midway.Building casadi locally -
Steps to Reproduce
Relevant log output
The text was updated successfully, but these errors were encountered: