Open JokerVilli opened 2 years ago
I understand that the problem is still not solved???
(venv) C:>pip install dostoevsky Collecting dostoevsky Downloading dostoevsky-0.6.0-py2.py3-none-any.whl (8.5 kB) Collecting razdel==0.5.0 Downloading razdel-0.5.0-py3-none-any.whl (21 kB) Collecting fasttext==0.9.2 Downloading fasttext-0.9.2.tar.gz (68 kB) ---------------------------------------- 68.8/68.8 kB 3.9 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 c:\users...\miniconda3\envs...\lib\site-packages (from fasttext==0.9.2->dostoevsky) (65.3.0) Requirement already satisfied: numpy in c:\users...\miniconda3\envs\icd\lib\site-packages (from fasttext==0.9.2->dostoevsky) (1.23.1) 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 ╰─> [20 lines of output] C:\Users...\Miniconda3\envs...\lib\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.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 error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [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: razdel, pybind11, fasttext, dostoevsky 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 ╰─> [22 lines of output] C:\Users...\Miniconda3\envs...\lib\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 C:\Users...\Miniconda3\envs...\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 error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [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.
This package is not usable if this issue does not get resolved.
Hi, @smoothrhymes616 Installation log that you provided gives some hints about possible fix of error, please read it carefully, especially this part:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":
https://visualstudio.microsoft.com/visual-cpp-build-tools/
@smoothrhymes61, here a solution for installing dostoevsky for Windows.
MSVC v140 - VS2015 C++ Build Tools (v14.00)
(it's located at Individual components tab of Visual Studio Installer).fasttext
from here. For python 3.10.* and Windows x64 you need this one:
pip install fasttext‑0.9.2‑cp310‑cp310‑win_amd64.whl
pip install dostoevsky
...
Successfully installed dostoevsky-0.6.0
Thanks, Immick!!! That fixed it for me!
Hello! These manipulations did not help in installing fast text. The error keeps popping up:
Collecting dostoevsky Using cached dostoevsky-0.6.0-py2.py3-none-any.whl (8.5 kB) Collecting razdel==0.5.0 Using cached razdel-0.5.0-py3-none-any.whl (21 kB) Collecting fasttext==0.9.2 Using cached fasttext-0.9.2.tar.gz (68 kB) Preparing metadata (setup.py) ... done Collecting pybind11>=2.2 Using cached pybind11-2.10.1-py3-none-any.whl (216 kB) Collecting setuptools>=0.7.0 Using cached setuptools-65.5.1-py3-none-any.whl (1.2 MB) Collecting numpy Using cached numpy-1.23.4-cp310-cp310-win_amd64.whl (14.6 MB) 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
╰─> [70 lines of output]
C:\Users\Arwielao\AppData\Roaming\Python\Python310\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.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\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include -IC:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include -Isrc "-IC:\Program Files\Python310\include" "-IC:\Program Files\Python310\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /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: Ґ®Ўкпў«Ґл© Ё¤ҐвЁдЁЄ в®а
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: "pybind11::init": Ґ ©¤Ґ ᮮ⢥вбвўгой п ЇҐаҐЈа㦥 п дгЄжЁп
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1902): note: ¬®¦Ґв Ўлвм "Ret pybind11::init(CFunc &&,AFunc &&)"
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): note: pybind11::init: Ґ¤®ЇгбвЁ¬л© аЈг¬Ґв и Ў«® ¤«п "CFunc", вॡгҐвбп вЁЇ
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1902): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1894): note: Ё«Ё "Ret pybind11::init(Func &&)"
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): note: pybind11::init: Ґ¤®ЇгбвЁ¬л© аЈг¬Ґв и Ў«® ¤«п "Func", вॡгҐвбп вЁЇ
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1894): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1882): note: Ё«Ё "pybind11::detail::initimpl::constructor
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1882): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
python/fasttext_module/fasttext/pybind/fasttextpybind.cc(171): error C2672: "pybind11::class
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1902): note: ¬®¦Ґв Ўлвм "Ret pybind11::init(CFunc &&,AFunc &&)"
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): note: pybind11::init: Ґ¤®ЇгбвЁ¬л© аЈг¬Ґв и Ў«® ¤«п "CFunc", вॡгҐвбп вЁЇ
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1902): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1894): note: Ё«Ё "Ret pybind11::init(Func &&)"
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): note: pybind11::init: Ґ¤®ЇгбвЁ¬л© аЈг¬Ґв и Ў«® ¤«п "Func", вॡгҐвбп вЁЇ
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1894): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1882): note: Ё«Ё "pybind11::detail::initimpl::constructor
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1882): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
python/fasttext_module/fasttext/pybind/fasttextpybind.cc(185): error C2672: "pybind11::class
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1594): note: Ё«Ё "pybind11::class
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: razdel, setuptools, pybind11, numpy, fasttext, dostoevsky 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
╰─> [72 lines of output]
C:\Users\Arwielao\AppData\Roaming\Python\Python310\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
C:\Users\Arwielao\AppData\Roaming\Python\Python310\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\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include -IC:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include -Isrc "-IC:\Program Files\Python310\include" "-IC:\Program Files\Python310\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /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: Ґ®Ўкпў«Ґл© Ё¤ҐвЁдЁЄ в®а
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: "pybind11::init": Ґ ©¤Ґ ᮮ⢥вбвўгой п ЇҐаҐЈа㦥 п дгЄжЁп
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1902): note: ¬®¦Ґв Ўлвм "Ret pybind11::init(CFunc &&,AFunc &&)"
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): note: pybind11::init: Ґ¤®ЇгбвЁ¬л© аЈг¬Ґв и Ў«® ¤«п "CFunc", вॡгҐвбп вЁЇ
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1902): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1894): note: Ё«Ё "Ret pybind11::init(Func &&)"
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): note: pybind11::init: Ґ¤®ЇгбвЁ¬л© аЈг¬Ґв и Ў«® ¤«п "Func", вॡгҐвбп вЁЇ
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1894): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1882): note: Ё«Ё "pybind11::detail::initimpl::constructor
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1882): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
python/fasttext_module/fasttext/pybind/fasttextpybind.cc(171): error C2672: "pybind11::class
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1902): note: ¬®¦Ґв Ўлвм "Ret pybind11::init(CFunc &&,AFunc &&)"
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): note: pybind11::init: Ґ¤®ЇгбвЁ¬л© аЈг¬Ґв и Ў«® ¤«п "CFunc", вॡгҐвбп вЁЇ
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1902): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1894): note: Ё«Ё "Ret pybind11::init(Func &&)"
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): note: pybind11::init: Ґ¤®ЇгбвЁ¬л© аЈг¬Ґв и Ў«® ¤«п "Func", вॡгҐвбп вЁЇ
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1894): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1882): note: Ё«Ё "pybind11::detail::initimpl::constructor
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1882): note: б¬. ®Ўкпў«ҐЁҐ "pybind11::init"
python/fasttext_module/fasttext/pybind/fasttextpybind.cc(185): error C2672: "pybind11::class
C:\Users\Arwielao\AppData\Roaming\Python\Python310\site-packages\pybind11\include\pybind11\pybind11.h(1594): note: Ё«Ё "pybind11::class
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.
Please, help!
Could someone please help me out?