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)
This commit is contained in:
Mark Kretschmann 2022-11-26 17:34:16 +01:00 committed by GitHub
parent 3eddbd11e4
commit eae358810b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]