Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Pg-Pi3Gey opened this issue Jul 14, 2022 · 3 comments

Comments

@Pg-Pi3Gey
Copy link

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
Copy link
Collaborator

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

@Pg-Pi3Gey
Copy link
Author

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants