From b9573e9e2232c3a91e7713f78191a23d4d3e9c77 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 1 Feb 2021 23:15:00 +1100 Subject: [PATCH] Fix pip args --- 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 ffa1f00e8..1555531da 100644 --- a/spacy/cli/download.py +++ b/spacy/cli/download.py @@ -105,6 +105,6 @@ def download_model( filename: str, user_pip_args: Optional[Sequence[str]] = None ) -> None: download_url = about.__download_url__ + "/" + filename - pip_args = user_pip_args if user_pip_args is not None else [] + pip_args = list(user_pip_args) if user_pip_args is not None else [] cmd = [sys.executable, "-m", "pip", "install"] + pip_args + [download_url] run_command(cmd)