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)
This commit is contained in:
ines 2018-01-03 17:40:37 +01:00
parent 319d754309
commit d8109964d6
1 changed files with 1 additions and 1 deletions

View File

@ -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())