From 77852d242867bee6a8032da8f673c5171f28ed79 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 26 Aug 2020 05:02:43 +0200 Subject: [PATCH] Fix run_command for python 3.6 --- spacy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/util.py b/spacy/util.py index 57693a776..0268ae91f 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -586,7 +586,7 @@ def run_command(command: Union[str, List[str]], *, capture=False, stdin=None) -> command, env=os.environ.copy(), input=stdin, - text=True, + encoding="utf8", check=True, stdout=subprocess.PIPE if capture else None, stderr=subprocess.PIPE if capture else None,