Failed building wheel for spacy

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

提交回复
热议问题