安装anaconda后无法导入排列

can't import permutations after installing anaconda

我收到 from functools import permutations 的 ImportError,但它之前是有效的。我在 windows 7,我看到的唯一主要变化是安装 现在蟒蛇。我在工作时有 python 2.7.10,而 anaconda 2.7.9...我尝试在 Anaconda 提示符下卸载常规 python 和 运行 python,并且仍然是同样的错误。我该如何解决这个问题并仍然保留 Anaconda?谢谢

我在 functools 的文档中没有看到 permutationshttps://docs.python.org/3/library/functools.html

然而,我在 itertools 中看到它,也许你拼错了? https://docs.python.org/2/library/itertools.html