'cannot import name 'get_ipython' from 'IPython'

I use macOS and miniconda3p7/bin/python I tried to run

from IPython import get_ipython

but see

ImportError: cannot import name 'get_ipython' from 'IPython' (unknown location)

Can anyone share even a clue/hypothesis?

pip install ipython

shows that already I have ipython



Solution 1:[1]

pip3 install --upgrade ipython

solved my problem

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Doo Nam Kim