For me, the issue was probably that I had a number of very old virtual environments lying around that I hadn't used in years. Deleting all of them solved the problem.