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,