Failed building wheel for spacy

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

    conda install -c conda-forge spacy worked for me. I have windows 10 and Python 3.5.3 :: Anaconda custom (64-bit)

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

    I installed these packages, then it works:

    sudo apt-get install python-dev 
    sudo apt-get install python3-dev 
    sudo apt-get install libevent-dev
    
    0 讨论(0)
  • 2020-12-05 19:15

    yum -y groupinstall development

    WORKED FOR ME

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

    This worked for me:

    # Note, use sudo. I'm in a docker image, so i dont need it.
    
    # install dev libs
    apt-get install python-dev -y && \
    apt-get install python3-dev -y && \
    apt-get install libevent-dev -y && \
    
    # install new gcc
    apt-get update && \
    apt-get install build-essential software-properties-common -y && \
    add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
    apt-get update && \
    apt-get install gcc-snapshot -y && \
    apt-get update && \
    apt-get install gcc-6 g++-6 -y && \
    update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
    apt-get install gcc-4.8 g++-4.8 -y && \
    update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8;
    

    see https://gist.github.com/application2000/73fd6f4bf1be6600a2cf9f56315a2d91

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

    A couple thoughts:

    • Grab the various wheel files you need from http://www.lfd.uci.edu/~gohlke/pythonlibs/#spacy and install with pip install x.whl y.whl etc.
    • Upgrade your version of cpp build tools to 2017 and try pip again
    0 讨论(0)
  • 2020-12-05 19:26

    If you are using it with manually installed python3.6 and trying to install in a 3.6 environment then you maybe missing python3.6-dev

    sudo apt-get install python3.6-dev
    

    also maybe

    sudo apt-get install gcc
    

    This is an answer to particular case.

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