title: Error during fasttext installation. How to fix?
body: <p>I am trying to install fasttext on Windows 10, but keep getting an error.
  VC with C++ compiler and other requirements are installed.
  Please, help!</p>
  <p>The error (only last rows, the error log is very long):</p>
  <pre><code>    D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:64:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:68:1: error: 'constexpr' does not name a type
       constexpr enable_if_t&lt;!B, descr&lt;N2 - 1&gt;&gt; _(char const(&amp;)[N1], char const(&amp;text2)[N2]) {
       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:68:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:73:1: error: 'constexpr' does not name a type
       constexpr enable_if_t&lt;B, T1&gt; _(const T1 &amp;d, const T2 &amp;) { return d; }
       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:73:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:75:1: error: 'constexpr' does not name a type
       constexpr enable_if_t&lt;!B, T2&gt; _(const T1 &amp;, const T2 &amp;d) { return d; }
       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:75:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:77:24: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
       template &lt;size_t Size&gt; auto constexpr _() -&gt; decltype(int_to_str&lt;Size / 10, Size % 10&gt;::digits) {
                              ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:77:29: error: 'constexpr' does not name a type
       template &lt;size_t Size&gt; auto constexpr _() -&gt; decltype(int_to_str&lt;Size / 10, Size % 10&gt;::digits) {
                                   ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:77:29: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:81:26: error: 'constexpr' does not name a type
       template &lt;typename Type&gt; constexpr descr&lt;1, Type&gt; _() { return {'%'}; }
                                ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:81:26: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:83:1: error: 'constexpr' does not name a type
       constexpr descr&lt;0&gt; concat() { return {}; }
       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:83:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:85:29: warning: variadic templates only available with -std=c++11 or -std=gnu++11
       template &lt;size_t N, typename... Ts&gt;
                                   ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:86:1: error: 'constexpr' does not name a type
       constexpr descr&lt;N, Ts...&gt; concat(const descr&lt;N, Ts...&gt; &amp;descr) { return descr; }
       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:86:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:88:29: warning: variadic templates only available with -std=c++11 or -std=gnu++11
       template &lt;size_t N, typename... Ts, typename... Args&gt;
                                   ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:88:45: warning: variadic templates only available with -std=c++11 or -std=gnu++11
       template &lt;size_t N, typename... Ts, typename... Args&gt;
                                                   ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:89:1: error: 'constexpr' does not name a type
       constexpr auto concat(const descr&lt;N, Ts...&gt; &amp;d, const Args &amp;...args)
       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:89:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:94:29: warning: variadic templates only available with -std=c++11 or -std=gnu++11
       template &lt;size_t N, typename... Ts&gt;
                                   ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:95:1: error: 'constexpr' does not name a type
       constexpr descr&lt;N + 2, Ts...&gt; type_descr(const descr&lt;N, Ts...&gt; &amp;descr) {
       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/descr.h:95:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
      In file included from D:\Python\lib\site-packages\pybind11\include/pybind11/cast.h:16:0,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/attr.h:13,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:44,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:58:7: error: expected nested-name-specifier before 'type_hash'
       using type_hash = std::hash&lt;std::type_index&gt;;
             ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:59:7: error: expected nested-name-specifier before 'type_equal_to'
       using type_equal_to = std::equal_to&lt;std::type_index&gt;;
             ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:83:1: error: expected unqualified-id before 'using'
       using type_map = std::unordered_map&lt;std::type_index, value_type, type_hash, type_equal_to&gt;;
       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h: In member function 'size_t pybind11::detail::overload_hash::operator()(const std::pair&lt;const _object*, const char*&gt;&amp;) const':
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:87:24: error: 'hash' is not a member of 'std'
               size_t value = std::hash&lt;const void *&gt;()(v.first);
                              ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:87:24: note: suggested alternative:
      In file included from D:\Python\lib\site-packages\pybind11\include/pybind11/cast.h:13:0,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/attr.h:13,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:44,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      D:\Python\lib\site-packages\pybind11\include/pybind11/pytypes.h:441:16: note:   'pybind11::hash'
       inline ssize_t hash(handle obj) {
                      ^
      In file included from D:\Python\lib\site-packages\pybind11\include/pybind11/cast.h:16:0,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/attr.h:13,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:44,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:87:34: error: expected primary-expression before 'const'
               size_t value = std::hash&lt;const void *&gt;()(v.first);
                                        ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:88:18: error: 'hash' is not a member of 'std'
               value ^= std::hash&lt;const void *&gt;()(v.second)  + 0x9e3779b9 + (value&lt;&lt;6) + (value&gt;&gt;2);
                        ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:88:18: note: suggested alternative:
      In file included from D:\Python\lib\site-packages\pybind11\include/pybind11/cast.h:13:0,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/attr.h:13,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:44,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      D:\Python\lib\site-packages\pybind11\include/pybind11/pytypes.h:441:16: note:   'pybind11::hash'
       inline ssize_t hash(handle obj) {
                      ^
      In file included from D:\Python\lib\site-packages\pybind11\include/pybind11/cast.h:16:0,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/attr.h:13,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:44,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:88:28: error: expected primary-expression before 'const'
               value ^= std::hash&lt;const void *&gt;()(v.second)  + 0x9e3779b9 + (value&lt;&lt;6) + (value&gt;&gt;2);
                                  ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h: At global scope:
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:97:5: error: 'type_map' does not name a type
           type_map&lt;type_info *&gt; registered_types_cpp; // std::type_index -&gt; pybind11's type information
           ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:98:10: error: 'unordered_map' in namespace 'std' does not name a template type
           std::unordered_map&lt;PyTypeObject *, std::vector&lt;type_info *&gt;&gt; registered_types_py; // PyTypeObject* -&gt; base type_info(s)
                ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:99:10: error: 'unordered_multimap' in namespace 'std' does not name a template type
           std::unordered_multimap&lt;const void *, instance*&gt; registered_instances; // void * -&gt; instance*
                ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:100:10: error: 'unordered_set' in namespace 'std' does not name a template type
           std::unordered_set&lt;std::pair&lt;const PyObject *, const char *&gt;, overload_hash&gt; inactive_overload_cache;
                ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:101:5: error: 'type_map' does not name a type
           type_map&lt;std::vector&lt;bool (*)(PyObject *, void *&amp;)&gt;&gt; direct_conversions;
           ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:102:10: error: 'unordered_map' in namespace 'std' does not name a template type
           std::unordered_map&lt;const PyObject *, std::vector&lt;PyObject *&gt;&gt; patients;
                ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:103:10: error: 'forward_list' in namespace 'std' does not name a template type
           std::forward_list&lt;void (*) (std::exception_ptr)&gt; registered_exception_translators;
                ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:104:10: error: 'unordered_map' in namespace 'std' does not name a template type
           std::unordered_map&lt;std::string, void *&gt; shared_data; // Custom data to be shared across extensions
                ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:106:10: error: 'forward_list' in namespace 'std' does not name a template type
           std::forward_list&lt;std::string&gt; static_strings; // Stores the std::strings backing detail::c_str()
                ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:24:56: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
       #    define PYBIND11_TLS_KEY_INIT(var) Py_tss_t *var = nullptr
                                                              ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:111:5: note: in expansion of macro 'PYBIND11_TLS_KEY_INIT'
           PYBIND11_TLS_KEY_INIT(tstate);
           ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:112:34: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
           PyInterpreterState *istate = nullptr;
                                        ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:24:56: error: 'nullptr' was not declared in this scope
       #    define PYBIND11_TLS_KEY_INIT(var) Py_tss_t *var = nullptr
                                                              ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:111:5: note: in expansion of macro 'PYBIND11_TLS_KEY_INIT'
           PYBIND11_TLS_KEY_INIT(tstate);
           ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:112:34: error: 'nullptr' was not declared in this scope
           PyInterpreterState *istate = nullptr;
                                        ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:136:68: error: '&gt;&gt;' should be '&gt; &gt;' within a nested template argument list
           std::vector&lt;std::pair&lt;const std::type_info *, void *(*)(void *)&gt;&gt; implicit_casts;
                                                                          ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:138:54: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
           buffer_info *(*get_buffer)(PyObject *, void *) = nullptr;
                                                            ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:139:29: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
           void *get_buffer_data = nullptr;
                                   ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:140:65: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
           void *(*module_local_load)(PyObject *, const type_info *) = nullptr;
                                                                       ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:138:54: error: 'nullptr' was not declared in this scope
           buffer_info *(*get_buffer)(PyObject *, void *) = nullptr;
                                                            ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:139:29: error: 'nullptr' was not declared in this scope
           void *get_buffer_data = nullptr;
                                   ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:140:65: error: 'nullptr' was not declared in this scope
           void *(*module_local_load)(PyObject *, const type_info *) = nullptr;
                                                                       ^
      In file included from D:\Python\lib\site-packages\pybind11\include/pybind11/cast.h:16:0,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/attr.h:13,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:44,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h: In function 'pybind11::detail::internals**&amp; pybind11::detail::get_internals_pp()':
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:211:39: error: 'nullptr' was not declared in this scope
           static internals **internals_pp = nullptr;
                                             ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h: At global scope:
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:215:38: error: variable or field 'translate_exception' declared void
       inline void translate_exception(std::exception_ptr p) {
                                            ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/detail/internals.h:215:33: error: 'exception_ptr' is not a member of 'std'
       inline void translate_exception(std::exception_ptr p) {
                                       ^
      In file included from D:\Python\lib\site-packages\pybind11\include/pybind11/numpy.h:12:0,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:2182:29: error: expected '}' before end of line
      D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:2182:29: error: expected '}' before end of line
      D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:2182:29: error: expected declaration before end of line
      In file included from D:\Python\lib\site-packages\pybind11\include/pybind11/cast.h:13:0,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/attr.h:13,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/pybind11.h:44,
                       from D:\Python\lib\site-packages\pybind11\include/pybind11/numpy.h:12,
                       from python/fasttext_module/fasttext/pybind/fasttext_pybind.cc:13:
      D:\Python\lib\site-packages\pybind11\include/pybind11/pytypes.h:315:20: warning: inline function 'std::__cxx11::string pybind11::detail::error_string()' used but never defined
       inline std::string error_string();
                          ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/pytypes.h:333:12: warning: inline function 'virtual pybind11::error_already_set::~error_already_set()' used but never defined
           inline ~error_already_set();
                  ^
      D:\Python\lib\site-packages\pybind11\include/pybind11/pytypes.h:333:12: warning: inline function 'virtual pybind11::error_already_set::~error_already_set()' used but never defined
      error: command 'D:\\Python\\Library\\mingw-w64\\bin\\gcc.exe' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'D:\Python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Temp\\pip-install-0n3qmnq1\\fasttext\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Temp\\pip-install-0n3qmnq1\\fasttext\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Temp\pip-record-5i0r9517\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
  </code></pre>
  <p>Tried to use pip install fasttext-win. Installation was successful, but when I am trying to do simple commands, like fasttext.model.from_unsupervised I am getting an error that there is no such function. I think this module is not what I am looking for.</p>