8000 Installation Error with hfst Package for python · Issue #578 · hfst/hfst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Installation Error with hfst Package for python #578
Open
@jessicacklai

Description

@jessicacklai

I encountered an error while trying to install the hfst package using pip. It seems to be related to a compilation issue during the installation process. May I know how can I solve this problem?

Environment:
Operating System: Windows 10
Python Version: Python 3.11 (Also tested with Python 3.9 and Python 3.10)
Visual Studio Version: Visual Studio Community 2022

Error Messages:

> pip install hfst
Collecting hfst
  Using cached hfst-3.12.2.4b0.tar.gz (1.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: hfst
  Building wheel for hfst (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for hfst (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [91 lines of output]
      C:\Users\xxx\AppData\Local\Temp\pip-build-env-0uf522lj\overlay\Lib\site-packages\setuptools\dist.py:318: InformationOnly: Normalizing '3.12.2.4_beta' to '3.12.2.4b0'
        self.metadata.version = self._normalize_version(self.metadata.version)
//
skip the lines in the middle
//

 lex.yy.c(1840): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x86\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for hfst
Failed to build hfst
ERROR: Could not build wheels for hfst, which is required to install pyproject.toml-based projects
50F5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0