为什么在导入 Qiskit 时出现导入错误?

每当我导入 qiskit 时,都会出现以下错误。有人知道为什么吗?


ImportError: dlopen(/opt/anaconda3/lib/python3.8/site-packages/tweedledum/_tweedledum.cpython-38-darwin.so,2): Symbol not found: _aligned_alloc
  Referenced from: /opt/anaconda3/lib/python3.8/site-packages/tweedledum/_tweedledum.cpython-38-darwin.so
  Expected in: /usr/lib/libSystem.B.dylib
 in /opt/anaconda3/lib/python3.8/site-packages/tweedledum/_tweedledum.cpython-38-darwin.so

Vicson515 回答:为什么在导入 Qiskit 时出现导入错误?

安装名为 tweedledum 的 Qiskit 依赖项之一时似乎出现问题。您可以在 anaconda 环境中尝试以下操作:

pip install --upgrade --force-reinstall tweedledum
本文链接:https://www.f2er.com/421.html

大家都在问