facebookresearch / fastText

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

legacy-install-failture: Python 3.10.4 unable to install FastText #1274

Open BrugerX opened 2 years ago

BrugerX commented 2 years ago

I've noticed this issue raised in many other packages that use FastText, so I believe it is a more general problem, please correct me if I am wrong.

I am using Python 3.10.4, pip 22.1.2 and Windows 11 x64.

I am running "pip install fasttext" in cmd line and I get the following output:

`pip install fasttext Collecting fasttext Using cached fasttext-0.9.2.tar.gz (68 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: pybind11>=2.2 in c:\users\benja\appdata\local\programs\python\python310\lib\site-packages (from fasttext) (2.9.2) Requirement already satisfied: setuptools>=0.7.0 in c:\users\benja\appdata\local\programs\python\python310\lib\site-packages (from fasttext) (62.3.2) Requirement already satisfied: numpy in c:\users\benja\appdata\local\programs\python\python310\lib\site-packages (from fasttext) (1.22.4) 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 ╰─> [52 lines of output] C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:772: 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.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\fasttext copying python\fasttext_module\fasttext\FastText.py -> build\lib.win-amd64-cpython-310\fasttext copying python\fasttext_module\fasttext__init.py -> build\lib.win-amd64-cpython-310\fasttext creating build\lib.win-amd64-cpython-310\fasttext\util copying python\fasttext_module\fasttext\util\util.py -> build\lib.win-amd64-cpython-310\fasttext\util copying python\fasttext_module\fasttext\util__init__.py -> build\lib.win-amd64-cpython-310\fasttext\util creating build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\test_configurations.py -> build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\test_script.py -> build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\init__.py -> build\lib.win-amd64-cpython-310\fasttext\tests running build_ext building 'fasttext_pybind' extension creating build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release creating build\temp.win-amd64-cpython-310\Release\python creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module\fasttext creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module\fasttext\pybind creating build\temp.win-amd64-cpython-310\Release\src "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -Isrc -IC:\Users\benja\AppData\Local\Programs\Python\Python310\include -IC:\Users\benja\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tppython/fasttext_module/fasttext/pybind/fasttext_pybind.cc /Fobuild\temp.win-amd64-cpython-310\Release\python/fasttext_module/fasttext/pybind/fasttext_pybind.obj /EHsc /DVERSION_INFO=\\"0.9.2\\" fasttext_pybind.cc python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2065: 'ssize_t': undeclared identifier python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: 'pybind11::init': no matching overloaded function found python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'CFunc', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1920): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'Func', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1912): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'Args', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1900): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttextpybind.cc(171): error C2672: 'pybind11::class::def': no matching overloaded function found python/fasttext_module/fasttext/pybind/fasttextpybind.cc(170): error C2780: 'pybind11::class &pybind11::class::def(const char *,Func &&,const Extra &...)': expects 3 arguments - 1 provided C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1577): note: see declaration of 'pybind11::class::def' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: 'ssize_t': undeclared identifier python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: 'ssize_t': undeclared identifier python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2672: 'pybind11::init': no matching overloaded function found python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'CFunc', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1920): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'Func', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1912): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'Args', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1900): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttextpybind.cc(185): error C2672: 'pybind11::class::def': no matching overloaded function found python/fasttext_module/fasttext/pybind/fasttextpybind.cc(182): error C2780: 'pybind11::class &pybind11::class::def(const char *,Func &&,const Extra &...)': expects 3 arguments - 1 provided C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1577): note: see declaration of 'pybind11::class::def' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2 [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: 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 ╰─> [54 lines of output] C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:772: 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 C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\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.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\fasttext copying python\fasttext_module\fasttext\FastText.py -> build\lib.win-amd64-cpython-310\fasttext copying python\fasttext_module\fasttext__init.py -> build\lib.win-amd64-cpython-310\fasttext creating build\lib.win-amd64-cpython-310\fasttext\util copying python\fasttext_module\fasttext\util\util.py -> build\lib.win-amd64-cpython-310\fasttext\util copying python\fasttext_module\fasttext\util__init__.py -> build\lib.win-amd64-cpython-310\fasttext\util creating build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\test_configurations.py -> build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\test_script.py -> build\lib.win-amd64-cpython-310\fasttext\tests copying python\fasttext_module\fasttext\tests\init__.py -> build\lib.win-amd64-cpython-310\fasttext\tests running build_ext building 'fasttext_pybind' extension creating build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release creating build\temp.win-amd64-cpython-310\Release\python creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module\fasttext creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module\fasttext\pybind creating build\temp.win-amd64-cpython-310\Release\src "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -Isrc -IC:\Users\benja\AppData\Local\Programs\Python\Python310\include -IC:\Users\benja\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tppython/fasttext_module/fasttext/pybind/fasttext_pybind.cc /Fobuild\temp.win-amd64-cpython-310\Release\python/fasttext_module/fasttext/pybind/fasttext_pybind.obj /EHsc /DVERSION_INFO=\\"0.9.2\\" fasttext_pybind.cc python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2065: 'ssize_t': undeclared identifier python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: 'pybind11::init': no matching overloaded function found python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'CFunc', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1920): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'Func', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1912): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'Args', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1900): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttextpybind.cc(171): error C2672: 'pybind11::class::def': no matching overloaded function found python/fasttext_module/fasttext/pybind/fasttextpybind.cc(170): error C2780: 'pybind11::class &pybind11::class::def(const char *,Func &&,const Extra &...)': expects 3 arguments - 1 provided C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1577): note: see declaration of 'pybind11::class::def' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: 'ssize_t': undeclared identifier python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: 'ssize_t': undeclared identifier python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2672: 'pybind11::init': no matching overloaded function found python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'CFunc', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1920): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'Func', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1912): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'Args', type expected C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1900): note: see declaration of 'pybind11::init' python/fasttext_module/fasttext/pybind/fasttextpybind.cc(185): error C2672: 'pybind11::class::def': no matching overloaded function found python/fasttext_module/fasttext/pybind/fasttextpybind.cc(182): error C2780: 'pybind11::class &pybind11::class::def(const char *,Func &&,const Extra &...)': expects 3 arguments - 1 provided C:\Users\benja\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1577): note: see declaration of 'pybind11::class::def' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2 [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. `

I have previously installed FastText in an older version of Python on this very machine some time in early 2022 before the current date (04/06/2022) and it worked perfectly then.

Do you know of any fixes to this?

FabianScott commented 2 years ago

I seem to be having this exact issue too

Xavxbs commented 1 year ago

you can try python 3.8, it works for me

MoritzLaurer commented 1 year ago

I'm also getting this error and I'm also in python 3.10.4. Would be great to be able to install fasttext with python 3.10

my stacktrace:

(bin) moritzlaurer@Moritzs-MacBook-Pro generative-ml-repo % pip install fasttext
Collecting fasttext
  Using cached fasttext-0.9.2.tar.gz (68 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pybind11>=2.2 in ./venv/bin/lib/python3.10/site-packages (from fasttext) (2.10.4)
Requirement already satisfied: setuptools>=0.7.0 in ./venv/bin/lib/python3.10/site-packages (from fasttext) (60.2.0)
Requirement already satisfied: numpy in ./venv/bin/lib/python3.10/site-packages (from fasttext) (1.24.2)
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
  ╰─> [69 lines of output]
      /Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/dist.py:723: 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.macosx-10.9-universal2-3.10
      creating build/lib.macosx-10.9-universal2-3.10/fasttext
      copying python/fasttext_module/fasttext/__init__.py -> build/lib.macosx-10.9-universal2-3.10/fasttext
      copying python/fasttext_module/fasttext/FastText.py -> build/lib.macosx-10.9-universal2-3.10/fasttext
      creating build/lib.macosx-10.9-universal2-3.10/fasttext/util
      copying python/fasttext_module/fasttext/util/util.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/util
      copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/util
      creating build/lib.macosx-10.9-universal2-3.10/fasttext/tests
      copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/tests
      copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/tests
      copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/tests
      running build_ext
      creating var
      creating var/folders
      creating var/folders/jt
      creating var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn
      creating var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmpq8shsgjc.cpp -o var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmpq8shsgjc.o -stdlib=libc++
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmptfvuao2d.cpp -o var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmptfvuao2d.o -stdlib=libc++ -mmacosx-version-min=10.7
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmp3omeki9w.cpp -o var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmp3omeki9w.o -std=c++14
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmpu5vt2t4h.cpp -o var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmpu5vt2t4h.o -std=c++11
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/pip-install-ysa_6qqz/fasttext_ead5c9b898bd473bafa0ea46aff5cc09/setup.py", line 168, in <module>
          setup(
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/__init__.py", line 155, in setup
          return distutils.core.setup(**attrs)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 148, in setup
          return run_commands(dist)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
          dist.run_commands()
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
          self.run_command(cmd)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
          self.run_command('build')
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 79, in run
          _build_ext.run(self)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
          self.build_extensions()
        File "/private/var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/pip-install-ysa_6qqz/fasttext_ead5c9b898bd473bafa0ea46aff5cc09/setup.py", line 146, in build_extensions
          opts.append(cpp_flag(self.compiler))
        File "/private/var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/pip-install-ysa_6qqz/fasttext_ead5c9b898bd473bafa0ea46aff5cc09/setup.py", line 108, in cpp_flag
          raise RuntimeError(
      RuntimeError: Unsupported compiler -- at least C++11 support is needed!
      [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: 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
  ╰─> [68 lines of output]
      /Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/dist.py:723: 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
      /Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/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.macosx-10.9-universal2-3.10
      creating build/lib.macosx-10.9-universal2-3.10/fasttext
      copying python/fasttext_module/fasttext/__init__.py -> build/lib.macosx-10.9-universal2-3.10/fasttext
      copying python/fasttext_module/fasttext/FastText.py -> build/lib.macosx-10.9-universal2-3.10/fasttext
      creating build/lib.macosx-10.9-universal2-3.10/fasttext/util
      copying python/fasttext_module/fasttext/util/util.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/util
      copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/util
      creating build/lib.macosx-10.9-universal2-3.10/fasttext/tests
      copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/tests
      copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/tests
      copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.macosx-10.9-universal2-3.10/fasttext/tests
      running build_ext
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmpx87inv37.cpp -o var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmpx87inv37.o -stdlib=libc++
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmp4d9k1dn3.cpp -o var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmp4d9k1dn3.o -stdlib=libc++ -mmacosx-version-min=10.7
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmpis360f38.cpp -o var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmpis360f38.o -std=c++14
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmp2asacw8h.cpp -o var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/tmp2asacw8h.o -std=c++11
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=13.2'
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/pip-install-ysa_6qqz/fasttext_ead5c9b898bd473bafa0ea46aff5cc09/setup.py", line 168, in <module>
          setup(
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/__init__.py", line 155, in setup
          return distutils.core.setup(**attrs)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 148, in setup
          return run_commands(dist)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
          dist.run_commands()
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
          self.run_command(cmd)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/command/install.py", line 68, in run
          return orig.install.run(self)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/command/install.py", line 662, in run
          self.run_command('build')
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 79, in run
          _build_ext.run(self)
        File "/Users/moritzlaurer/Dropbox/PhD/Papers/generative-ml/generative-ml-repo/venv/bin/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
          self.build_extensions()
        File "/private/var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/pip-install-ysa_6qqz/fasttext_ead5c9b898bd473bafa0ea46aff5cc09/setup.py", line 146, in build_extensions
          opts.append(cpp_flag(self.compiler))
        File "/private/var/folders/jt/1js1kpf96c991hb8zjzt0cjc0000gn/T/pip-install-ysa_6qqz/fasttext_ead5c9b898bd473bafa0ea46aff5cc09/setup.py", line 108, in cpp_flag
          raise RuntimeError(
      RuntimeError: Unsupported compiler -- at least C++11 support is needed!
      [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.