The pyvenv.cfg file in my Python virtual environment was forcing an old path that no longer exists. Deleting the file fixed my problem. Modifying the path in this file would probably work too.