epfml / sent2vec

General purpose unsupervised sentence representations
Other
1.19k stars 256 forks source link

Not able to install sent2vec #128

Open ajaysaravade1 opened 1 year ago

ajaysaravade1 commented 1 year ago

Giving error after using pip install .

 error: subprocess-exited-with-error
  × Building wheel for sent2vec (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [2 lines of output]
      cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\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 sent2vec
Failed to build sent2vec
ERROR: Could not build wheels for sent2vec, which is required to install pyproject.toml-based projects

please mention all requirements.

foresta-yang commented 1 year ago

Giving error after using pip install .

 error: subprocess-exited-with-error
  × Building wheel for sent2vec (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [2 lines of output]
      cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\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 sent2vec
Failed to build sent2vec
ERROR: Could not build wheels for sent2vec, which is required to install pyproject.toml-based projects

please mention all requirements.

I have also encountered the same problem. Have you solved it? Please give me some advice, Thanks.

drew-walkerr commented 1 year ago

Had similar problem with installation, I found the clearest step-by-step outlined here: https://github.com/epfml/sent2vec/issues/118 -- maybe consider amending in readme?