简体   繁体   中英

Cannot import QISKIT "ModuleNotFoundError: No module named 'qiskit._accelerate'"

I'm trying to use qiskit in virtual environment via Anaconda, however although I see qiskit as installed, importing qiskit always fails with:

ModuleNotFoundError: No module named 'qiskit._accelerate'

I can't find information about this anywhere. What is this module? What is wrong with the environment? It seems there's nothing called qiskit._accelerate

I've solved the issue thanks to Joseph Geipel's advice. There's some compatibility issue between Python and Qiskit.

Python 3.9.12 and Qiskit 0.37.0 seem not to work well together. When I've created a new environment with Python 3.8.13 and the same version of Qiskit, the problem was solved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM