ImportError: No module named enum

六眼飞鱼酱① 提交于 2019-11-30 11:15:46

问题


I changed from Win XP 32bit to Win7 64bit and reinstalled Python 2.7 and the Anaconda package.

However, it seems like it isn't properly installed. When I do

import enum 

There is the error:

ImportError: No module named enum

However, when I try import pandas it works.

When typing help() and modules within Ipython nothing happens.

Any idea how to go from here?


回答1:


Or run a pip install --upgrade pip enum34




回答2:


I ran into this same issue trying to install the dbf package in Python 2.7. The problem is that the enum package wasn't added to Python until version 3.4.

It has been backported to versions 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4, you just need the package from here: https://pypi.python.org/pypi/enum34#downloads




回答3:


Depending on your rights, you need sudo at beginning.



来源:https://stackoverflow.com/questions/26828206/importerror-no-module-named-enum

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!