facebookresearch / fastText

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

Problem installing `fasttext` with Python 3.9 #1295

Open AlxndrMlk opened 2 years ago

AlxndrMlk commented 2 years ago

Hi team,

trying to install fasttext with Python 3.9 results in a failure.

Input: pip install fasttext

Output:

Collecting fasttext
  Downloading fasttext-0.9.2.tar.gz (68 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.8/68.8 kB 3.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pybind11>=2.2
  Using cached pybind11-2.10.0-py3-none-any.whl (213 kB)
Requirement already satisfied: setuptools>=0.7.0 in /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages (from fasttext) (63.2.0)
Requirement already satisfied: numpy in /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages (from fasttext) (1.21.6)
Building wheels for collected packages: fasttext
  Building wheel for fasttext (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [168 lines of output]
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/fasttext
      copying python/fasttext_module/fasttext/FastText.py -> build/lib.linux-x86_64-cpython-39/fasttext
      copying python/fasttext_module/fasttext/__init__.py -> build/lib.linux-x86_64-cpython-39/fasttext
      creating build/lib.linux-x86_64-cpython-39/fasttext/util
      copying python/fasttext_module/fasttext/util/util.py -> build/lib.linux-x86_64-cpython-39/fasttext/util
      copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.linux-x86_64-cpython-39/fasttext/util
      creating build/lib.linux-x86_64-cpython-39/fasttext/tests
      copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.linux-x86_64-cpython-39/fasttext/tests
      copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.linux-x86_64-cpython-39/fasttext/tests
      copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.linux-x86_64-cpython-39/fasttext/tests
      running build_ext
      creating tmp
      gcc -pthread -B /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include/python3.9 -c /tmp/tmp4a78jpa2.cpp -o tmp/tmp4a78jpa2.o -std=c++14
      gcc: error: unrecognized command line option ‘-std=c++14’
      gcc -pthread -B /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include/python3.9 -c /tmp/tmpmbv3vcwx.cpp -o tmp/tmpmbv3vcwx.o -std=c++11
      gcc -pthread -B /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include/python3.9 -c /tmp/tmp481af7q8.cpp -o tmp/tmp481af7q8.o -fvisibility=hidden
      building 'fasttext_pybind' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/python
      creating build/temp.linux-x86_64-cpython-39/python/fasttext_module
      creating build/temp.linux-x86_64-cpython-39/python/fasttext_module/fasttext
      creating build/temp.linux-x86_64-cpython-39/python/fasttext_module/fasttext/pybind
      creating build/temp.linux-x86_64-cpython-39/src
      gcc -pthread -B /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include -Isrc -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include/python3.9 -c python/fasttext_module/fasttext/pybind/fasttext_pybind.cc -o build/temp.linux-x86_64-cpython-39/python/fasttext_module/fasttext/pybind/fasttext_pybind.o -DVERSION_INFO=\"0.9.2\" -std=c++11 -fvisibility=hidden
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h: In instantiation of ‘struct pybind11::overload_cast<int>’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:203:65:   required from here
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1052:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
           static_assert(detail::deferred_t<std::false_type, Args...>::value,
           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc: In function ‘void pybind11_init_fasttext_pybind(pybind11::module_&)’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:203:65: error: no matching function for call to ‘pybind11::overload_cast<int>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::precisionRecallCurve, py::const_))
                                                                       ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:203:65: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int>::overload_cast(const pybind11::overload_cast<int>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int>::overload_cast(pybind11::overload_cast<int>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h: In instantiation of ‘struct pybind11::overload_cast<>’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:207:65:   required from here
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1052:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
           static_assert(detail::deferred_t<std::false_type, Args...>::value,
           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:207:65: error: no matching function for call to ‘pybind11::overload_cast<>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::precisionRecallCurve, py::const_))
                                                                       ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:207:65: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<>::overload_cast(const pybind11::overload_cast<>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<>::overload_cast(pybind11::overload_cast<>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h: In instantiation of ‘struct pybind11::overload_cast<int, double>’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:211:62:   required from here
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1052:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
           static_assert(detail::deferred_t<std::false_type, Args...>::value,
           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:211:62: error: no matching function for call to ‘pybind11::overload_cast<int, double>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::precisionAtRecall, py::const_))
                                                                    ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:211:62: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast(const pybind11::overload_cast<int, double>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast(pybind11::overload_cast<int, double>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h: In instantiation of ‘struct pybind11::overload_cast<double>’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:215:62:   required from here
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1052:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
           static_assert(detail::deferred_t<std::false_type, Args...>::value,
           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:215:62: error: no matching function for call to ‘pybind11::overload_cast<double>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::precisionAtRecall, py::const_))
                                                                    ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:215:62: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast(const pybind11::overload_cast<double>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast(pybind11::overload_cast<double>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:219:62: error: no matching function for call to ‘pybind11::overload_cast<int, double>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::recallAtPrecision, py::const_))
                                                                    ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:219:62: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast(const pybind11::overload_cast<int, double>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast(pybind11::overload_cast<int, double>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:223:62: error: no matching function for call to ‘pybind11::overload_cast<double>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::recallAtPrecision, py::const_));
                                                                    ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:223:62: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast(const pybind11::overload_cast<double>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast(pybind11::overload_cast<double>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc: In lambda function:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:345:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   for (int32_t i = 0; i < vocab_freq.size(); i++) {
                                                           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc: In lambda function:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:359:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   for (int32_t i = 0; i < labels_freq.size(); i++) {
                                                            ^
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fasttext
  Running setup.py clean for fasttext
Failed to build fasttext
Installing collected packages: pybind11, fasttext
  Running setup.py install for fasttext ... error
  error: subprocess-exited-with-error

  × Running setup.py install for fasttext did not run successfully.
  │ exit code: 1
  ╰─> [169 lines of output]
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running install
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-39
      creating build/lib.linux-x86_64-cpython-39/fasttext
      copying python/fasttext_module/fasttext/FastText.py -> build/lib.linux-x86_64-cpython-39/fasttext
      copying python/fasttext_module/fasttext/__init__.py -> build/lib.linux-x86_64-cpython-39/fasttext
      creating build/lib.linux-x86_64-cpython-39/fasttext/util
      copying python/fasttext_module/fasttext/util/util.py -> build/lib.linux-x86_64-cpython-39/fasttext/util
      copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.linux-x86_64-cpython-39/fasttext/util
      creating build/lib.linux-x86_64-cpython-39/fasttext/tests
      copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.linux-x86_64-cpython-39/fasttext/tests
      copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.linux-x86_64-cpython-39/fasttext/tests
      copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.linux-x86_64-cpython-39/fasttext/tests
      running build_ext
      gcc -pthread -B /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include/python3.9 -c /tmp/tmp7bitd41p.cpp -o tmp/tmp7bitd41p.o -std=c++14
      gcc: error: unrecognized command line option ‘-std=c++14’
      gcc -pthread -B /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include/python3.9 -c /tmp/tmpu8_lxtcy.cpp -o tmp/tmpu8_lxtcy.o -std=c++11
      gcc -pthread -B /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include/python3.9 -c /tmp/tmplutdkzt4.cpp -o tmp/tmplutdkzt4.o -fvisibility=hidden
      building 'fasttext_pybind' extension
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/python
      creating build/temp.linux-x86_64-cpython-39/python/fasttext_module
      creating build/temp.linux-x86_64-cpython-39/python/fasttext_module/fasttext
      creating build/temp.linux-x86_64-cpython-39/python/fasttext_module/fasttext/pybind
      creating build/temp.linux-x86_64-cpython-39/src
      gcc -pthread -B /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -O2 -isystem /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include -fPIC -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include -Isrc -I/home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/include/python3.9 -c python/fasttext_module/fasttext/pybind/fasttext_pybind.cc -o build/temp.linux-x86_64-cpython-39/python/fasttext_module/fasttext/pybind/fasttext_pybind.o -DVERSION_INFO=\"0.9.2\" -std=c++11 -fvisibility=hidden
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h: In instantiation of ‘struct pybind11::overload_cast<int>’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:203:65:   required from here
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1052:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
           static_assert(detail::deferred_t<std::false_type, Args...>::value,
           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc: In function ‘void pybind11_init_fasttext_pybind(pybind11::module_&)’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:203:65: error: no matching function for call to ‘pybind11::overload_cast<int>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::precisionRecallCurve, py::const_))
                                                                       ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:203:65: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int>::overload_cast(const pybind11::overload_cast<int>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int>::overload_cast(pybind11::overload_cast<int>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h: In instantiation of ‘struct pybind11::overload_cast<>’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:207:65:   required from here
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1052:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
           static_assert(detail::deferred_t<std::false_type, Args...>::value,
           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:207:65: error: no matching function for call to ‘pybind11::overload_cast<>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::precisionRecallCurve, py::const_))
                                                                       ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:207:65: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<>::overload_cast(const pybind11::overload_cast<>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<>::overload_cast(pybind11::overload_cast<>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h: In instantiation of ‘struct pybind11::overload_cast<int, double>’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:211:62:   required from here
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1052:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
           static_assert(detail::deferred_t<std::false_type, Args...>::value,
           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:211:62: error: no matching function for call to ‘pybind11::overload_cast<int, double>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::precisionAtRecall, py::const_))
                                                                    ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:211:62: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast(const pybind11::overload_cast<int, double>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast(pybind11::overload_cast<int, double>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h: In instantiation of ‘struct pybind11::overload_cast<double>’:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:215:62:   required from here
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1052:5: error: static assertion failed: pybind11::overload_cast<...> requires compiling in C++14 mode
           static_assert(detail::deferred_t<std::false_type, Args...>::value,
           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:215:62: error: no matching function for call to ‘pybind11::overload_cast<double>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::precisionAtRecall, py::const_))
                                                                    ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:215:62: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast(const pybind11::overload_cast<double>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast(pybind11::overload_cast<double>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:219:62: error: no matching function for call to ‘pybind11::overload_cast<int, double>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::recallAtPrecision, py::const_))
                                                                    ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:219:62: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast(const pybind11::overload_cast<int, double>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<int, double>::overload_cast(pybind11::overload_cast<int, double>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:223:62: error: no matching function for call to ‘pybind11::overload_cast<double>::overload_cast(<unresolved overloaded function type>, const std::integral_constant<bool, true>&)’
                     &fasttext::Meter::recallAtPrecision, py::const_));
                                                                    ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:223:62: note: candidates are:
      In file included from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast()
       struct overload_cast {
              ^
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 0 arguments, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast(const pybind11::overload_cast<double>&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note: constexpr pybind11::overload_cast<double>::overload_cast(pybind11::overload_cast<double>&&)
      /home/ec2-user/SageMaker/python-39/miniconda/envs/python_39/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:1051:8: note:   candidate expects 1 argument, 2 provided
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc: In lambda function:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:345:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   for (int32_t i = 0; i < vocab_freq.size(); i++) {
                                                           ^
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc: In lambda function:
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:359:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   for (int32_t i = 0; i < labels_freq.size(); i++) {
                                                            ^
      error: command '/usr/bin/gcc' failed with exit code 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.
Note: you may need to restart the kernel to use updated packages.
munnokd commented 1 year ago

First, install pybind11 first using pip install pybind11 and, then installed fasttext. Hope it will work.

AlxndrMlk commented 1 year ago

Thanks @munnokd, I'll try this when I have a while.

ZhechenLi commented 1 year ago

Any update here? I have try to install pybind11, but still get same error