spacy库安装

来源:互联网 发布:sql优化书籍推荐 编辑:程序博客网 时间:2024/05/22 16:51

SpaCy

有三种方法安装spacy库,推荐第二种。

Solution 1: Installing Visual Studio Express 2015 (https://www.visualstudio.com/vs/visual-studio-express, free but takes 12 GB of space on the hard drive), then run:

pip install -U spacypython -m spacy.en.download

Solution 2: Use Anaconda, in which case there is no need to install Visual Studio Express 2015:

conda config --add channels conda-forgeconda install spacypython -m spacy.en.downloadpython -m spacy download en

Solution 3: Download from http://www.lfd.uci.edu/~gohlke/pythonlibs these precompiled Python packages (you may use a more recent version of the packages, but it should end with -cp35-cp35m-win_amd64.whl, which indicates they are compiled for Python 3.5 64-bit.):

  • cymem-1.31.2-cp35-cp35m-win_amd64.whl
  • murmurhash-0.26.4-cp35-cp35m-win_amd64.whl
  • preshed-1.0.0-cp35-cp35m-win_amd64.whl
  • thinc-6.5.2-cp35-cp35m-win_amd64.whl
  • spacy-1.8.2-cp35-cp35m-win_amd64.whl

Then, run from the command prompt:

pip install cymem-1.31.2-cp35-cp35m-win_amd64.whlpip install murmurhash-0.26.4-cp35-cp35m-win_amd64.whlpip install preshed-1.0.0-cp35-cp35m-win_amd64.whlpip install thinc-6.5.2-cp35-cp35m-win_amd64.whlpip install spacy-1.8.2-cp35-cp35m-win_amd64.whlpython -m spacy.en.download
原创粉丝点击