Using Pudb In A Virtual Environment

If you have pudb installed globally you won’t be able to run it with the Python from your virtualenv. The work around is to first install pudb through your virtualenv pip

pip install pudb

and then run:

python -m pudb

Also, if you’re lazy you might just add this to your ~/.bashrc

alias pudb='python -m pudb'

So now you can simply do