Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: cannot import name 'pairwise' from 'itertools' (unknown location)

I'm getting that error when I try to run my program in python 3 in Conda version 4.9.2

Traceback (most recent call last): File "mosaic.py", line 1, in <module> from itertools import pairwise ImportError: cannot import name 'pairwise' from 'itertools' (unknown location)

like image 925
Antonio D'Costa Avatar asked Oct 15 '25 15:10

Antonio D'Costa


1 Answers

This function is available in Python^3.10 (Python docs).

like image 155
ghost_programmer Avatar answered Oct 17 '25 04:10

ghost_programmer