facebookresearch / fastText

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

installation error #1245

Open emrulhasan-nlp opened 2 years ago

emrulhasan-nlp commented 2 years ago

C:\Users\Emrul\Desktop\Research\RW_22\AE\DECNN18\fastText>pip install . Processing c:\users\emrul\desktop\research\rw_22\ae\decnn18\fasttext Requirement already satisfied: pybind11>=2.2 in c:\programs\python\python37\lib\site-packages (from fasttext==0.9.2) (2.7.1) Requirement already satisfied: setuptools>=0.7.0 in c:\programs\python\python37\lib\site-packages (from fasttext==0.9.2) (56.0.0) Requirement already satisfied: numpy in c:\programs\python\python37\lib\site-packages (from fasttext==0.9.2) (1.19.5) Building wheels for collected packages: fasttext Building wheel for fasttext (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Emrul\AppData\Local\Temp\pip-req-build-opr88wbl\setup.py'"'"'; file='"'"'C:\Users\Emrul\AppData\Local\Temp\pip-req-build-opr88wbl\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Emrul\AppData\Local\Temp\pip-wheel-bx8lnlr0' cwd: C:\Users\Emrul\AppData\Local\Temp\pip-req-build-opr88wbl\ Complete output (20 lines): c:\programs\python\python37\lib\site-packages\setuptools\dist.py:645: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead % (opt, underscore_opt)) running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\fasttext copying python\fasttext_module\fasttext\FastText.py -> build\lib.win-amd64-3.7\fasttext copying python\fasttext_module\fasttext__init.py -> build\lib.win-amd64-3.7\fasttext creating build\lib.win-amd64-3.7\fasttext\util copying python\fasttext_module\fasttext\util\util.py -> build\lib.win-amd64-3.7\fasttext\util copying python\fasttext_module\fasttext\util__init__.py -> build\lib.win-amd64-3.7\fasttext\util creating build\lib.win-amd64-3.7\fasttext\tests copying python\fasttext_module\fasttext\tests\test_configurations.py -> build\lib.win-amd64-3.7\fasttext\tests copying python\fasttext_module\fasttext\tests\test_script.py -> build\lib.win-amd64-3.7\fasttext\tests copying python\fasttext_module\fasttext\tests\init__.py -> build\lib.win-amd64-3.7\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/

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: Command errored out with exit status 1: command: 'c:\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Emrul\AppData\Local\Temp\pip-req-build-opr88wbl\setup.py'"'"'; file='"'"'C:\Users\Emrul\AppData\Local\Temp\pip-req-build-opr88wbl\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Emrul\AppData\Local\Temp\pip-record-zb741xqz\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\programs\python\python37\Include\fasttext' cwd: C:\Users\Emrul\AppData\Local\Temp\pip-req-build-opr88wbl\ Complete output (20 lines): c:\programs\python\python37\lib\site-packages\setuptools\dist.py:645: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead % (opt, underscore_opt)) running install running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\fasttext copying python\fasttext_module\fasttext\FastText.py -> build\lib.win-amd64-3.7\fasttext copying python\fasttext_module\fasttext__init.py -> build\lib.win-amd64-3.7\fasttext creating build\lib.win-amd64-3.7\fasttext\util copying python\fasttext_module\fasttext\util\util.py -> build\lib.win-amd64-3.7\fasttext\util copying python\fasttext_module\fasttext\util__init__.py -> build\lib.win-amd64-3.7\fasttext\util creating build\lib.win-amd64-3.7\fasttext\tests copying python\fasttext_module\fasttext\tests\test_configurations.py -> build\lib.win-amd64-3.7\fasttext\tests copying python\fasttext_module\fasttext\tests\test_script.py -> build\lib.win-amd64-3.7\fasttext\tests copying python\fasttext_module\fasttext\tests\init__.py -> build\lib.win-amd64-3.7\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/

ERROR: Command errored out with exit status 1: 'c:\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Emrul\AppData\Local\Temp\pip-req-build-opr88wbl\setup.py'"'"'; file='"'"'C:\Users\Emrul\AppData\Local\Temp\pip-req-build-opr88wbl\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Emrul\AppData\Local\Temp\pip-record-zb741xqz\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\programs\python\python37\Include\fasttext' Check the logs for full command output. WARNING: You are using pip version 21.0.1; however, version 21.3.1 is available. You should consider upgrading via the 'c:\programs\python\python37\python.exe -m pip install --upgrade pip' command.

When i try to install i get the above error. Could you please guide me where the error is? Thanks

MosGeo commented 2 years ago

Install visual c++ build tools. You can get it from this link: https://visualstudio.microsoft.com/visual-cpp-build-tools/