From eae358810b4f115150dc6004d57a36fd4ed4a902 Mon Sep 17 00:00:00 2001 From: Mark Kretschmann Date: Sat, 26 Nov 2022 17:34:16 +0100 Subject: [PATCH] Fix Unicode error on Windows (Issue #200) (#203) Fix Unicode error on Windows during setup, while trying to read contents of README.md. (Issue #200) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fbc129daeb..99bebc37c8 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import find_packages, setup with open(Path(__file__).absolute().parents[0] / "langchain" / "VERSION") as _f: __version__ = _f.read().strip() -with open("README.md", "r") as f: +with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() LLM_DEPENDENCIES = ["cohere", "openai", "nlpcloud", "huggingface_hub"]