Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu 16.04, Python 2.7 - ImportError: No module named enum

First time using Ubuntu. I installed Anaconda 4.1.1 (Python 2.7). I was trying to use enum but I got an import error.

import enum
Traceback (most recent call last):

File "<ipython-input-1-13948d6bb7b8>", line 1, in <module>
import enum

ImportError: No module named enum

I tried using: conda install -c menpo enum=0.4.4 but it didn't work.

I also tried installing enum from this link - https://pypi.python.org/pypi/enum34#downloads

None of these solutions have worked for me so far.

Any help would be greatly appreciated. Thanks!

like image 769
modin3956 Avatar asked Sep 23 '16 22:09

modin3956


1 Answers

Try pip install enum34. Enum is in the Python 3 stdlib. enum34 is a backport.

like image 196
Bharel Avatar answered Oct 19 '22 04:10

Bharel