pip3 abort signal on startup

I've just upgraded to macOS Catalina, I've used brew install dpkg, and homebrew decided it was time to run brew cleanup.

After running it, I've not been able to run pip3 anymore.

Tried running brew doctor and brew reinstall python3, but none helped.

Running pip3 outputs this:

[1] 26346 abort pip3


That problem is caused by asn1crypto.
You could try:

rm -rf /usr/local/lib/python3.7/site-packages/asn1crypto*

Which will uninstall asn1crypto.

Reference: This Stack Overflow Post