ImportError: Нет модуля с именем enum на Mac Python 2.7.10 - PullRequest
1 голос
/ 01 июля 2019

Я уже пытался установить enum, enum34 и aenum на моем Mac, но я не смог импортировать эти пакеты в мой код или интерактивную оболочку. Но я могу найти эти пакеты на 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

1 Ответ

0 голосов
/ 01 июля 2019

Я не смог найти никакого решения, но сейчас я скопировал enum из https://bitbucket.org/stoneleaf/enum34/src/default/enum/__init__.py в свою локальную папку.

...