0

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

Matteo Possamai
  • 455
  • 1
  • 10
  • 23
  • This answer https://stackoverflow.com/a/49800061/59470 may help: try setting `Pipfile`'s `python_version` per above and I agree with another recommendation to use `Pyenv` that supports parallel python versions use case. – topchef Oct 02 '22 at 21:57

0 Answers0