-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Install fails: No module named 'pybind11' #512
Comments
I created an issue upstream in pybind's example project: pybind/python_example#32 EDIT: with a possible solution here |
i've installed pybind11 |
Hi, thanks - yes that is true thank you. |
I installed pybind11 using pip install pybind11 - It shows that requirement already satisfied. |
This worked for me. Thanks |
Summary: In some environments, `python setup.py install` fails to install pybind11. The solution is given by `pybind11`'s repository which consists on calling `pip install pybind11` via subprocess. The issue and the solution were reported here #512 Reviewed By: EdouardGrave Differential Revision: D13167381 fbshipit-source-id: 4ee7835a07e503d00728857242e085bc7de53c14
Hi, Thank you all for your feedback! Onur |
Missing python3-dev on the system is likely to be the source of this problem. Try, as root: apt install python3-dev |
Running |
@Celebio Can't install |
anyone has any idea how to fix this issue now ? |
@victorphamdeveloper I solved the problem by switching to |
Latest PIP seems to not use legacy build anymore. Adding a
or
for those who use poetry, might work. |
I was extremely surprised to find that wheels aren't build for fasttext by default. It is rather bad practice to install |
Actually you just need to find the fasttext.whl and download it, after entering the address of the whl you execute "pip install fasttext-xxx.whl then it will install fasttext on your equipment. At least it works on my computer. |
same problem...!!! non of above works! what should i do??? |
i downloaded fasttext from this address and i installed with pip install |
My fastapi project works fine locally. However, I have the same error when I run pyproject.toml |
Run Because pip 23.1 changed its build behavior when wheel package is not present. https://pip.pypa.io/en/latest/news/#v23-1 |
@brondsem you saved my life - thks |
@brondsem |
This worked for me in python 3.11.5, but not in 3.12.0 for some reason. |
pybind11 was already installed. Fasttext installation was not able to find pybind11 until I ran this:
|
Problem was GCC version 13 for me. It finally worked with |
Summary
The instructions at https://github.com/facebookresearch/fastText#building-fasttext-for-python do not work for me now. Installing straight from github has the same problem:
System
The text was updated successfully, but these errors were encountered: