本文介绍了ImportError:在python 2.7上没有名为enum的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Python 2.7运行代码。我得到 ImportError:没有名为枚举的模块。我使用 pip install enum安装了枚举,但错误不断出现。我该怎么办?

I'm running a code with Python 2.7. And I get "ImportError: No module named enum". I installed enum with "pip install enum" but the error keeps coming. What shall I do??

推荐答案

您要:

pip install enum34

在PyPI上名为 enum 的发行版是另外一回事。

The distribution named enum on PyPI is something else, unfortunately.

这篇关于ImportError:在python 2.7上没有名为enum的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 10:23
查看更多