Pip cannot install packages after upgrading to Catalina

Looks like it's a problem with SortedDict. I can pip install other packages. I commented sorteddict and sortedcollection out of my Pipfile and I can start up my pipenv. (I was only manually installing sorteddict because pipenv wasn't working.)