C:\Users\admin>python Python 3.3.5 (v3.3.5:62cf4e77f785, Mar 9 2014, 10:35:05) [MSC v.1600 64 bit (AM D64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from enum import Enum Traceback (most recent call last): File "<interactive input>", line 1, in <module> ImportError: No module named ‘enum‘
未安装enum,可按如下方法下载并安装:
enum下载地址:https://pypi.python.org/pypi/enum34#downloads C:\Users\admin>pip install d:\py\enum34-1.1.6-py3-none-any.whl Processing d:\py\enum34-1.1.6-py3-none-any.whl Installing collected packages: enum34 Successfully installed enum34-1.1.6
注:需要半pip的路径C:\Python33\Scripts加入到系统环境变量中。
本文出自 “HUNT” 博客,请务必保留此出处http://hunt1574.blog.51cto.com/1390776/1953130
ImportError: No module named 'enum'
原文地址:http://hunt1574.blog.51cto.com/1390776/1953130