Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

3.2K
Views
Obteniendo AttributeError: el módulo 'colecciones' no tiene el atributo 'MutableMapping' al usar cualquier comando pip3 en Linux Python 3.10

Hola, he instalado la última versión de python 3.10 y pip3 en mi máquina Linux (Zorin os lite 15.3 X64), pero cada vez que trato de usar cualquier comando pip3 aparece el siguiente error. Por ejemplo, uso el comando:

pip3 congelar

Obtuve el siguiente error:

 Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module> from pip import main File "/usr/lib/python3/dist-packages/pip/__init__.py", line 22, in <module> from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 73, in <module> vendored("pkg_resources") File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 33, in vendored __import__(modulename, globals(), locals(), level=0) File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 77, in <module> File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/_vendor/packaging/requirements.py", line 9, in <module> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 672, in _load_unlocked File "<frozen importlib._bootstrap>", line 632, in _load_backward_compatible File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/extern/__init__.py", line 43, in load_module File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/_vendor/pyparsing.py", line 943, in <module> AttributeError: module 'collections' has no attribute 'MutableMapping'

Esto funcionaba bien con Python 3.9, pero cuando actualicé a 3.10 comencé a recibir este error. ¿Como puedo resolver esto?

over 4 years ago · Santiago Trujillo
4 answers
Answer question

0

Actualice pip... collections.MutableMapping se ha convertido en collections.abc.MutableMapping.

over 4 years ago · Santiago Trujillo Report

0

actualizar pip usando el siguiente código

 curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
over 4 years ago · Santiago Trujillo Report

0

Puedo intentar arreglarlo con la pip install request --upgrade

over 4 years ago · Santiago Trujillo Report

0

El problema se debe a una versión antigua de pyparsing que se ha vendido en pkg_resources , que ahora forma parte de setuptools .

Creo que si instala herramientas de setuptools actualizadas, las cosas funcionarán mejor:

 python -m pip install -U setuptools

EDITAR: después de instalar mi propia versión de 3.10.1 en Ubuntu 18.04, tengo el mismo problema. Y los pkg_resources rotos impiden realizar actualizaciones, por lo que su clásico Catch-22. Para comenzar a buscar una resolución, envié un ticket en el repositorio de Github de setuptools.

EDIT2 - Basado en la ayuda en el repositorio de GitHub de setuptools , hice los siguientes pasos:

 # add deadsnake repo (default or nightly) sudo add-apt-repository ppa:deadsnakes/ppa sudo apt install python3.10 git clone https://github.com/pypa/setuptools.git && cd setuptools && sudo python3.10 setup.py install sudo apt install python3.10-distutils curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 sudo apt install python3.10-venv

En este punto, puedo ejecutar pip en Python3.10 y crear venvs usando python3.10 -m venv virtualenv-dir .

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!