I have a repo with a project whose environment is created with pipenv, in python 3.9. On my own machine I have installed both python 3.10 (main ubuntu) and 3.9. The problem is that the project is for python 3.9, because each time I try to install or start the environment, it reports and error given by the version, like this:
AttributeError: module 'collections' has no attribute 'MutableMapping'
And this pops up each time I try to type the following commands, in each order I prefer:
pipenv shell
pipenv install --python 3.9 --dev --verbose
I read quite a lot of guides and StackOverflow answers, that told me that the --python 3.9
flag was the solution, but it is not.
Does someone know hot to fix that? Thank you so much
NB: I am on UBUNTU 22.04. I don't think that it is useful, but I don't know