I have tried updating pip and setuptools (to version 68.0.0) and have tried installing various packages with apt, as suggested by people facing similar issues but nothing so has resolved the problem.