Failed building wheel for spacy

后端 未结 10 1638
我在风中等你
我在风中等你 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: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

提交回复
热议问题