如何仅使用 Jupyter Notebook 安装 Qiskit?

How to install Qiskit with only Jupyter Notebook?

我想在 Ubuntu 18.04 上使用 Jupyter Notebook 而不安装 Anaconda。我不想使用任何虚拟环境。如何安装 Qiskit?

我试过用pip3安装Qiskit。

pip3 install qiskit

这会显示以下消息

Segmentation fault (core dumped)

但如果我尝试从终端导入 qiskit,则显示没有错误。但是当我尝试从 Jupyter Notebook 导入 qiskit 时,它说

there is not module named qiskit

有什么解决这个问题的建议吗?

您有不同的 python 安装。在jupyter指向的python安装中安装qiskit。在 jupyter notebook

下面使用
!pip3 install qiskit