Install ipdb for Python 3?

I installed ipdb using pip but i still get

ImportError: No module named ipdb .

Do I need to do something to bring this module? Of course, I import ipdb at the top of my file. My thinking is this: I have Python 2.7 and Python 3 installed. Pip installed ipdb in the Python 2.7 directory, but the Python module that I run uses Python 3. I think this is a problem, but how can I solve it, so ipdb can be used with my python 3 module? Thanks!

+4
source share
1 answer

From fooobar.com/questions/9139 / ...

  • Install the python3-setuptools : run sudo aptitude install python3-setuptools , this will give you the easy_install3 command.
  • Install pip using Python 3 setuptools: run sudo easy_install3 pip , this will give you pip-3.2 command.
  • Install PyPI packages: run sudo pip-3.2 install <package> (root is required to install python packages on your base system, of course).
+3
source

Source: https://habr.com/ru/post/1487539/


All Articles