Intento iniciar python-pptx , pero tengo un error:
AttributeError: module 'collections' has no attribute 'Container' in File "...\lib\site-packages\pptx_init_.py", line 14Utilice Python 3.10, python-pptx (0.6.21), lxmx (4.6.3).
Por favor, ayúdame.
Es un problema conocido de Python 3.10, como se explica en este número . La solución consiste en importar collections de módulos y collections.abc antes de importar pptx . Por ejemplo:
import collections import collections.abc from pptx import PresentationEsto debería resolver este error.
Problema resuelto, cambié Python 3.10 a Python 3.9.