petermr / docanalysis

Semantic analysis of text documents including sentence and paragraph splitting
Apache License 2.0
12 stars 3 forks source link

[INSTALLATION FAILED] Encountered error while trying to install package nmslib #18

Open Pg-Pi3Gey opened 2 years ago

Pg-Pi3Gey commented 2 years ago

Followed the setup successfully but while installing docanalysis getting this error

"-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 /Tpnmslib.cc /Fobuild\temp.win-amd64-3.10\Release\nmslib.obj /EHsc /openmp /O2 /DVERSION_INFO=\\\"2.1.1\\\"
      nmslib.cc
      C:\Temp\pip-install-qii4qkv_\nmslib_8c50588dc520411fa08b71247222a315\similarity_search\include\object.h(127): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
      C:\Temp\pip-install-qii4qkv_\nmslib_8c50588dc520411fa08b71247222a315\similarity_search\include\distcomp.h(260): warning C4244: 'initializing': conversion from 'size_t' to 'float', possible loss of data
      nmslib.cc(454): error C2017: illegal escape sequence
      nmslib.cc(454): error C2001: newline in constant
      nmslib.cc(459): error C2143: syntax error: missing ')' before 'pybind11::enum_<similarity::DistType>'
      nmslib.cc(459): error C2143: syntax error: missing ';' before 'pybind11::enum_<similarity::DistType>'
      nmslib.cc(730): warning C4267: '=': conversion from 'size_t' to 'T', possible loss of data
              with
              [
                  T=int
              ]
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\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.
╰─> nmslib

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
ShweataNHegde commented 2 years ago

Can you please tell us which version of python you are running? scispacy has issues with 3.10.

Pg-Pi3Gey commented 2 years ago

Can you please tell us which version of python you are running? scispacy has issues with 3.10.

yes, it's 3.10.4

ShweataNHegde commented 2 years ago

Can you downgrade it to 3.8. and check if you can run docanalysis?