ImportError: cannot import name 'IntEnum'

I am trying to install upstox which is a python API for connecting to market data. I cannot install on python 3.5.

My Python 3.5.3 config (v3.5.3: 1880cb95a742, 16 Jan 2017, 15:51:26) [MSC v.1900 32 bit (Intel)] on win32

Collecting upstox
  Using cached upstox-0.7-py2.py3-none-any.whl
Collecting future (from upstox)
  Using cached future-0.16.0.tar.gz
Collecting websocket-client (from upstox)
  Using cached websocket_client-0.42.1-py2.py3-none-any.whl
Collecting pycurl (from upstox)
  Using cached pycurl-7.43.0-cp35-none-win32.whl
Collecting enum (from upstox)
  Using cached enum-0.4.6.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\site-packages\setuptools\__init__.py", line 10, in <module>
        from setuptools.extern.six.moves import filter, filterfalse, map
      File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\site-packages\setuptools\extern\__init__.py", line 1, in <module>
        from pkg_resources.extern import VendorImporter
      File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pkg_resources\__init__.py", line 33, in <module>
        import platform
      File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\platform.py", line 117, in <module>
        import sys, os, re, subprocess
      File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 50, in <module>
        import signal
      File "C:\Users\UserPad\AppData\Local\Programs\Python\Python35-32\lib\signal.py", line 4, in <module>
        from enum import IntEnum as _IntEnum
    ImportError: cannot import name 'IntEnum'

    ----------------------------------------

      

Failed to execute command "python setup.py egg_info" with error code 1 in folder C: \ Users \ UserPad \ AppData \ Local \ Temp \ pycharm-package \ enum \

+3


source to share


1 answer


Did you install "enum" before installing the required package? It looks like it is telling you to install it first.

Run this command in CMD to install the enum and then try to install the desired package



pip install enum

      

0


source







All Articles