facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.87k stars 4.71k forks source link

error during pip install #1318

Open ulf1 opened 1 year ago

ulf1 commented 1 year ago

an error occurs during pip install fasttext

...
pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory
        266 | #include <Python.h>
            |          ^~~~~~~~~~
      compilation terminated.
      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> fasttext

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
munnokd commented 1 year ago

You can try pip install fasttext_win this.

YanJiangJerry commented 1 year ago

not work, do anyone has this problem

claell commented 1 year ago

Has somebody found a workaround? Seems this issue got introduced somewhere in between Python 3.9.5 (works) and Python 3.11.3 (fails).

claell commented 1 year ago

@dmitryvinn-fb @likethesky @Celebio @colesbury Just pinging some devs to get attention to this issue. Does the team want to support current Python versions, or is it fine that this tool stops working?

ulf1 commented 1 year ago

@claell pip install fasttext-wheel