Importerror:在Mac Python上没有名为Enum的模块2.7.10



我已经尝试在Mac上安装enumenum34aenum,但是我无法将这些软件包导入到我的代码或交互式外壳中。但是我可以在pip freeze上找到这些软件包。

基本上,我想运行https://github.com/kcoley/gltf2usd。

iMAC:Source JK$ pip install enum
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting enum
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/site-packages (from enum) (41.0.1)
Installing collected packages: enum
Successfully installed enum-0.4.7
from enum import Enum
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named enum

我找不到任何解决方案,但现在,我从> https://bitbucket.org/stoneleaf/enum34/src/src/default/enum/__inum/__init__init__.init__.py __init__.py 进入我的本地文件夹。

相关内容

  • 没有找到相关文章

最新更新