Pip cannot install packages after upgrading to Catalina I haven't used pipenv since upgrading, but today I needed to work on an old project and I'm getting problems with pipenv and other python utilities. I did a xcode-select --install and brew update &amp;&amp; brew upgrade and that didn't help. I ever tried brew bundle dump --describe --global &amp;&amp; brew bundle install --global. Even a simple commmand like pip3 install sorteddict fails with 

  Using cached sorteddict-1.2.1.tar.gz (5.2 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_2/qxtp7dds6r5df9q369cxlswm0000gn/T/pip-install-00izrc3z/sorteddict/setup.py'"'"'; __file__='"'"'/private/var/folders/_2/qxtp7dds6r5df9q369cxlswm0000gn/T/pip-install-00izrc3z/sorteddict/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/_2/qxtp7dds6r5df9q369cxlswm0000gn/T/pip-install-00izrc3z/sorteddict/pip-egg-info
         cwd: /private/var/folders/_2/qxtp7dds6r5df9q369cxlswm0000gn/T/pip-install-00izrc3z/sorteddict/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "&lt;string&gt;", line 1, in &lt;module&gt;
      File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tokenize.py", line 447, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/_2/qxtp7dds6r5df9q369cxlswm0000gn/T/pip-install-00izrc3z/sorteddict/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
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.)