spacy库安装

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 spacy
python -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-forge
conda install spacy
python -m spacy.en.download
python -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.whl
pip install murmurhash-0.26.4-cp35-cp35m-win_amd64.whl
pip install preshed-1.0.0-cp35-cp35m-win_amd64.whl
pip install thinc-6.5.2-cp35-cp35m-win_amd64.whl
pip install spacy-1.8.2-cp35-cp35m-win_amd64.whl
python -m spacy.en.download
  • 4
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 12
    评论
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值