Search code examples
pythonjupyter-notebookqiskit

How to install Qiskit with only Jupyter Notebook?


I want to use Jupyter Notebook without installing Anaconda on Ubuntu 18.04. I do not want to use any virtual environment. What can I do to install Qiskit?

I have tried to install Qiskit with pip3.

pip3 install qiskit

This shows the following message

Segmentation fault (core dumped)

But if I try to import qiskit from terminal with this shows no error. But when I try to import qiskit from Jupyter Notebook it says that

there is not module named qiskit

Any suggestion to solve this problem?


Solution

  • You have different python installations. Install qiskit in the python installation pointed by jupyter. Use below from jupyter notebook

    !pip3 install qiskit