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)
harrison/logging_to_file
Mark Kretschmann 2 years ago committed by GitHub
parent 3eddbd11e4
commit eae358810b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save