I just installed python3 on my new pc and tried to install some libraries(numpy, cython, cymem) using pip and I get AttributeError: module 'collections' has no attribute 'Iterable' but libraries like nltk and cytest installed okay. Does anyone have a solution to this
8
-
add specific python and pip version info.– Keval DaveJan 19, 2020 at 12:09
-
You must be more specific: which platform (Windows, Linux, ...etc). Which version of Python, what is the full error output.– s.oucheneJan 19, 2020 at 12:16
-
python: 3.9.0a2– GeneralSagsJan 19, 2020 at 12:17
-
pip version: 19.3.1– GeneralSagsJan 19, 2020 at 12:18
-
@GeneralSags: Add the full error output. Which platform are you using? (Linux or Windows)?– s.oucheneJan 19, 2020 at 12:24
|
Show 3 more comments
1 Answer
collections.Iterable is deprecated. Replace it with collections.abc.Iterable.
See this answer for compatibility : https://stackoverflow.com/a/53978543/13369176