Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named enum

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?

like image 382
user3276418 Avatar asked Nov 09 '14 12:11

user3276418


2 Answers

Or run a pip install --upgrade pip enum34

like image 171
Dark Star1 Avatar answered Sep 21 '22 09:09

Dark Star1


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

like image 25
Jonathan Kunze Avatar answered Sep 18 '22 09:09

Jonathan Kunze