-
Notifications
You must be signed in to change notification settings - Fork 749
pip install qiskit does not work on M1-based macs #1201
Comments
This is a bit surprising, while we don't ship arm64 or universal2 macOS binaries yet (we're waiting for numpy and more importantly scipy to do that first before we can add CI jobs for it), both qiskit-terra and qiskit-aer both provide sdist packages which pip should at least try to install from source. What does pip install show with |
Hard to see exactly as it prints hundreds of things like: Skipping link: none of the wheel's tags match: cp39-cp39-macosx_10_9_x86_64: https://files.pythonhosted.org/packages/77/60/52147ac849bc0f4948425d1d3cc8f3fe0663f9378afa0876e39a3eac4929/qiskit_aer-0.7.6-cp39-cp39-macosx_10_9_x86_64.whl#sha256=3ef24e9555b2b5b1f5ee5a20c4a5220fd8802349d37ba646e1a838423b91018d (from https://pypi.org/simple/qiskit-aer/) (requires-python:>=3.6) |
I should note that py39 is the only supported version for native m1 support. |
Also, scipy and numpy are available from condaforge. |
I wonder if this is because the mac builds are 10.9 whereas I think you need 11 for M1 macs. |
The same problem here |
I am having the same problem atm, installed conda-forge for m1 (which should come with numpy and scipy afaik) but when I try running pip install qiskit it keeps looking for older versions as it says that I has a problem with the cmake installation, with the error being "Failed building wheel for cmake". Also, this is the very firsterror thrown when pip tries get the requirements to build the wheel:
|
The error with This is the kind of error I would expect though (try and fail to build from sdist), what isn't clear to me is why even outside of that failure, pip on an m1 mac isn't trying to build things from sdist. All the qiskit packages provide an sdist package on pypi so for platforms like the m1 macs (but not exclusively for example ppc64le, s390x, or sparc linux too) pip should be trying to build all the qiskit packages from source. Without the full logs of what is causing pip to reject a qiskit version's sdist (since there won't be any wheel matches) I won't be able to debug this further. (my best guess is that something in the dependency tree is wheel only and doesn't ship m1 compatible wheels, but without the logs I can't confirm or come up with a workaround) |
FYI, I successful install qiskit on M1 macbook air through Anaconda today. I think we need to run Anaconda (with Rosetta) first and then run |
So having tried this with
|
HI, I'm sort of having the same issues. I have all qiskit packages installed on my MacBook Pro (M1) and manage to get Aer 0.5.2 installed, but that's where it stops. I also experienced that it rewinded down to 3.1, but you can force pip install using qiskit-aer==0.5.2 Conan is an issues, and the rebuild stops in "AER_DEPENDENCY_PKG::llvm-openmp)" See below! CMakeList.txt conan_utils.cmake |
I can also confirm that everything is working with Rosetta (VS Code) |
It always was there with Aer and error: "ValueError: 'qiskit/quantum_info/states/cython/exp_value.pyx' doesn't match any files" |
no updates with Aer? |
Any chances that someone fix broken Aer package? |
I'm having the same issue. |
Any updates on this? I am trying to install on Mac M1 but I see a strange behavior. If it is possible to install qiskit on M1 architecture with conda-forge then it is probably something else on my side. Trying to rule out possible issues. Thx! |
You can install everything but qiskit-aer native on an m1 mac currently. Instead of doing |
I believe this has now been fixed (since Qiskit/qiskit-aer#1362)? I tried installing |
It's not fixed for the metapackage yet, Qiskit/qiskit-aer#1362 added support for fixing this, but it hasn't been included in a release yet. We haven't published the precompiled arm64 macOS binary packages to pypi yet. It will be soon though, once Qiskit/qiskit-aer#1458 merges it'll be released then we'll release a new metpackage version (see #1412) which will close this. |
Trying to install Qiskit via
pip
(orpip install -U
) fails because there is no compatible aer binary with m1-based macs. Pip just iteratively looks for lower and lower Qiskit versions attempting to find a suitable package.The text was updated successfully, but these errors were encountered: