petermr / docanalysis

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

Error in building 'spacy.training.example' extension #17

Open Enakshi-1998 opened 2 years ago

Enakshi-1998 commented 2 years ago
 building 'spacy.training.example' 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 spacy
Failed to build spacy
ERROR: Could not build wheels for spacy, which is required to install pyproject.toml-based projects

I already have Microsoft Visual C++ 14.0 installed in my system. I can't figure out what is pyproject.toml-based projects and how to install them.

ShweataNHegde commented 2 years ago

I think you must have followed this: https://stackoverflow.com/questions/64261546/how-to-solve-error-microsoft-visual-c-14-0-or-greater-is-required-when-inst.

Which Python version are you running? I had a similar problem when I used 3.10. I had to downgrade mine to 3.8. Can you try that?

ShweataNHegde commented 2 years ago

Alternatively, I can remove scispacy from the dependency, since we don't use it all the time.

Enakshi-1998 commented 2 years ago

I have python 3.10 installed in my system. I will try to downgrade it.

petermr commented 2 years ago

I'm generally running Python 3.8. 3.10 gives problems (I think mainly libraries)

On Wed, Jul 13, 2022 at 4:25 PM Enakshi-1998 @.***> wrote:

I have python 3.10 installed in my system. I will try to downgrade it.

— Reply to this email directly, view it on GitHub https://github.com/petermr/docanalysis/issues/17#issuecomment-1183365501, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFTCSZBZZ4TYL3XYQ26MQDVT3NYFANCNFSM53PC77AA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Peter Murray-Rust Founder ContentMine.org and Reader Emeritus in Molecular Informatics Dept. Of Chemistry, University of Cambridge, CB2 1EW, UK

Enakshi-1998 commented 2 years ago

I have downgraded it. Now, this issue is resolved.