Failed building wheel for spacy

后端 未结 10 1623
我在风中等你
我在风中等你 2020-12-05 18:52

I\'m trying to install spacy by running pip install spacy for python version 3.6.1 but continuously i\'m getting errors like below,how to get r

相关标签:
10条回答
  • 2020-12-05 19:32

    If you are on Ubuntu, just do this

    sudo apt-get install build-essential python-dev git
    

    Now install spacy by

    pip install -U spacy
    
    0 讨论(0)
  • 2020-12-05 19:38

    for me, pip install --no-cache-dir spacy worked

    0 讨论(0)
  • 2020-12-05 19:38

    Download and install from the Gihub source. Here is the link: https://github.com/explosion/spaCy

    Use these commands:

    python -m pip install -U pip venv              # update pip & virtualenv
    git clone https://github.com/explosion/spaCy   # clone spaCy
    cd spaCy                                       # navigate into directory
    
    venv .env                                      # create environment in .env
    source .env/bin/activate                       # activate virtual environment
    export PYTHONPATH=`pwd`                        # set Python path to spaCy directory
    pip install -r requirements.txt                # install all requirements
    python setup.py build_ext --inplace            # compile spaCy
    

    Feel free to use only last two commands if not using virtual environment. Follow the official Documentation here

    0 讨论(0)
  • 2020-12-05 19:38

    Spacy requires 64-bit python.

    Uninstall 32-bit. Install 64-bit python.

    Try spacy installation again.

    0 讨论(0)
提交回复
热议问题