You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: