Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I get a AttributeError: module 'collections' has no attribute 'Iterable' when I try to install libraries using PIP

When installing some libraries (numpy, cython, cymem) using pip, I get an error during the installation process that says:

AttributeError: module 'collections' has no attribute 'Iterable'

Why does this happen, and how can I make these libraries install properly?

  • Platform: Windows 10 (64 bit)
  • Python: 64 bit (3.9.0a2)
  • Pip version: 19.3.1
like image 902
Saugat Timilsina Avatar asked Jan 29 '26 10:01

Saugat Timilsina


1 Answers

collections.Iterable is deprecated. Replace it with collections.abc.Iterable.

See this answer for compatibility : https://stackoverflow.com/a/53978543/13369176

like image 64
Jean-Baptiste Poittevin Avatar answered Jan 30 '26 23:01

Jean-Baptiste Poittevin