-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Error whilst installing ver 0.31.0 #13739
Comments
Qiskit 0.31 is over three years old now, and none of the 0.x series is supported. Back in the 0.31 series, the compiled language used to accelerate Qiskit was Cython (which is relatively hard to build from source, compared to modern Qiskit), and the M1 Mac chip architecture was less than a year old. I think we only published a couple of one-off wheels for M1 Mac back then. Looking at PyPI, I think you might have better luck with Python 3.9. If you do try to build from source, your best bet will be to check out this repository at the 0.18.3 tag1, and read the "building from source" instructions in the contributing guide from there. At a minimum, you'll need a working C compiler, and you'll probably need to install Cython 0.29.x as a Python package first. Footnotes
|
Looking at your error message in more detail, I'd guess that your modern build is pulling in a too-new version of Cython, and some of its behaviour changed as it went from Cython 0.29 (which was current at the time of Qiskit 0.31 / qiskit-terra 0.18.3) to Cython 3 (a year and a half ago, two years after the version of Qiskit you're trying was released). |
@jakelishman Thank you for your answer. I tried the following two and both did not work :(
The first attempt gave me the same error and the second one gave the following error, which I put only the last few messages since it is huge.
|
Oh, also I tried to install Qiskit 0.31 with Python 3.9.21 and got the different error :(
|
Ah ok, Aer is a different beast altogether. I don't remember when that started building wheels for M1 Mac, but it may well have been Aer 0.10 or later (you can check on PyPI - go to the release history, the for older releases look for the files and see if they have a macOS "universal" or "arm64" wheel file). If you've got any other computer you can use for this project, like a Windows or Linux machine, you might have better luck - you're trying to install a package from a time when your CPU architecture was still quite new, so the support is spotty. I think there's a way to use x86_64 Python on ARM Mac too, which might help, but I don't know the detail sorry For building from source: installing Cython in a virtual environment and then running |
Environment
What is happening?
I need to install qiskit 0.31.0 for an old project and when installing qiskit 0.31.0 by pip, the following error happens.
How can we reproduce the issue?
pip install qiskit==0.31.0
What should happen?
Qiskit 0.31.0 should be successfully installed.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: