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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jessicacklai opened this issue May 20, 2024 · 0 comments
Open

Installation Error with hfst Package for python #578

jessicacklai opened this issue May 20, 2024 · 0 comments

Comments

@jessicacklai
Copy link
jessicacklai commented May 20, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0