-
Notifications
You must be signed in to change notification settings - Fork 4.7k
RuntimeError: Unsupported compiler -- at least C++11 support is needed #1196
Comments
Just ran into the same issue. I was not able to install fasttext on a docker container. I installed all build-essentials intsead of only
My gcc version: gcc (Debian 8.3.0-6) 8.3.0 Edit: I'm sure there are more elaborate ways to do this or be more selective in installing these build-essentials. |
Try: https://github.com/messense/fasttext-wheel pip install fasttext-wheel |
I had the same issue and solved it using python3-dev:
|
had the same issue when using the base docker container python:3.8-slim-buster , I changed it to python:3 in my Dockerfile and it worked |
For the
Reference: Can't Install build-essential on CentOS |
Even after /tmp/pip-build-env-tv07wujr/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory solved after running |
I installed a C++ compiler using |
I was facing the same issue that 'apt-get install build-essential -y' that it did not worked for me. But then I found a solution. What you need to do is first run
and then
This was able to resolve the issue for me. |
thank
…---Original---
From: ***@***.***>
Date: Wed, Sep 6, 2023 00:47 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [facebookresearch/fastText] RuntimeError: Unsupported compiler --at least C++11 support is needed (#1196)
Even after apt-get install build-essential -y I am getting the below error
/tmp/pip-build-env-tv07wujr/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory
solved after running apt-get install python3-dev
I was facing the same issue that 'apt-get install build-essential -y' that it did not worked for me. But then I found a solution.
What you need to do is first run
apt-get update
and then
apt-get install build-essential -y
This was able to resolve the issue for me.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Thank you this is helpful for me |
In my case, the problem was the path: there was spaces in the path that breaks the compiler command. Remove spaces in the path or replace them for |
No description provided.
The text was updated successfully, but these errors were encountered: