Q:

Pip enum on windows

I have a use for enums. Works fine on Ubuntu, python 2.7
On windows python 2.7  I have loaded Enums using pip 
pip install enum

and
pip install Enum

When I run the program on Windows:
from enum import Enum

class Foo(Enum):
    A = 0
    B = 1

I get the error

# Part of ÔÇÿenumÔÇÖ, a package providing enumerated types for Python.
  ImportError: cannot import name Enum on line 1

Can anyone help please?

A:

I realised that the Enums package is for Python 3 and I am using Python 2.7
For some reason, it works OK on Ubuntu, but not on Windows
So I've resorted to using a dict:
Foo = {'A':1, 'B':2, 1:'A', 2:'B'}

