命令" python setup.py egg_info" c:\ temp \ pip-build-9s6c_h \ pyenchant \中的错误代码1失败

时间:2017-11-14 18:23:52

标签: python pip install pyenchant

安装pyenchant时遇到问题:

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

我尝试使用pip install --upgrade setuptools,但这根本没有帮助。

不确定该怎么做。

编辑:

额外追溯:

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.

1 个答案:

答案 0 :(得分:0)

例如,您可以使用whl文件代替

pip install name.whl

我今天也遇到了这个问题。幸运的是,我使用这种方法来解决它。

pip install basemap-1.1.0-cp36-cp36m-win_amd64.whl