Skip to content

How to make change to spacy source code and build the source code of spacy

YanLiang edited this page Feb 25, 2018 · 3 revisions

https://spacy.io/usage/

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