From d8109964d671a12bcf62dd493ebd00b27caedf85 Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 3 Jan 2018 17:40:37 +0100 Subject: [PATCH] Use --no-deps on model install In general, it's nice for models to specify spaCy as a dependency. However, this tends to cause problems in conda environments, as pip will re-install spaCy and its dependencies (especially Thinc) --- spacy/cli/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/download.py b/spacy/cli/download.py index c1a03a9c3..c043e383f 100644 --- a/spacy/cli/download.py +++ b/spacy/cli/download.py @@ -84,5 +84,5 @@ def get_version(model, comp): def download_model(filename): download_url = about.__download_url__ + '/' + filename return subprocess.call( - [sys.executable, '-m', 'pip', 'install', '--no-cache-dir', + [sys.executable, '-m', 'pip', 'install', '--no-cache-dir', '--no-deps', download_url], env=os.environ.copy())