Can not install spacy package on windows 10 via pip

Data Science Asked on January 6, 2022

I have below environment.
OS: Windows 10
Python: Python 3.7.4
PIP: pip 19.3.1

I am trying to install spacy in my windows 10 OS. It gives me below error.

 ERROR: Command errored out with exit status 1:
   command: 'd:rajeshpythonenv1scriptspython.exe' 'd:rajeshpythonenv1libsite-packagespip' install --ignore-installed --no-user --prefix 'C:Usersrajesh.dasAppDataLocalTemppip-build-env-vna552d_normal' --no-warn-script-location --no-binary :none: --only-binary :none: -i -- 'thinc<7.4.0,>=7.3.0' 'cymem<2.1.0,>=2.0.2' 'preshed<3.1.0,>=3.0.2' wheel 'cython>=0.25' 'murmurhash<1.1.0,>=0.28.0'
       cwd: None
  Complete output (460 lines):
  Collecting thinc<7.4.0,>=7.3.0
    Using cached
  Collecting cymem<2.1.0,>=2.0.2
    Using cached
  Collecting preshed<3.1.0,>=3.0.2
    Using cached
  Collecting wheel
    Using cached
  Collecting cython>=0.25
    Using cached
  Collecting murmurhash<1.1.0,>=0.28.0
    Using cached
  Collecting blis<0.5.0,>=0.4.0
    Using cached
  Collecting wasabi<1.1.0,>=0.0.9
    Using cached
  Collecting srsly<1.1.0,>=0.0.6
    Using cached
  Collecting numpy>=1.7.0
    Using cached
  Collecting plac<1.2.0,>=0.9.6
    Using cached
  Collecting tqdm<5.0.0,>=4.10.0
    Using cached
  Building wheels for collected packages: thinc, cymem, preshed, murmurhash, blis, srsly
    Building wheel for thinc ( started
    Building wheel for thinc ( finished with status 'error'
    ERROR: Command errored out with exit status 1:

Also I was trying to install dependency package of spacy thinc, It also gives same error.

Can anyone give some idea?

One Answer

I was getting this exact same error trying to install spaCy into a 32-bit Python virtual environment. The latest version of spaCy I was trying to install (2.3.2) requires 64-bit Python. When I rebuilt my virtual environment as 64-bit and then tried to install spaCy, it worked fine.

Just make sure you are trying to install spaCy into a 64-bit Python environment and you should be good to go.

Answered by Michael Szczepaniak on January 6, 2022

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP