I see your answer, and I really would like to add a little more.
- The problem arose because you are using python 2.7, and the latest version of ipdb has packages that require python 3+.
python2 -m pip install ipdb
, , (.. ).
, , .
pip install ipdb==0.10.2
, . , 0.10.3 python 2.7; . , ipdb, python, , python 2.7. ipdb.

:
, . , - ? , , .
, ( ), , , .
, , . , , .