1

Having trouble installing pyenchant:

Command "python setup.py egg_info" failed with error code 1 in c:\temp\pip-build-9s6c_h\pyenchant\

I tried using pip install --upgrade setuptools but that didn't help at all.

Not sure what to do.

EDIT:

Additional traceback:

Collecting pyenchant
  Using cached pyenchant-1.6.11.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\temp\pip-build-farfu_\pyenchant\setup.py", line 212, in <module>
        import enchant
      File "enchant\__init__.py", line 92, in <module>
        from enchant import _enchant as _e
      File "enchant\_enchant.py", line 145, in <module>
        raise ImportError(msg)
    ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI.
madsthaks
  • 2,091
  • 6
  • 25
  • 46

1 Answers1

0

I think you can use the whl file instead, for exammple:

pip install name.whl

I also encountered this problem today. Fortunately, I used this method to solve it.

pip install basemap-1.1.0-cp36-cp36m-win_amd64.whl
Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
Jason Niu
  • 11
  • 2