Fix 'UnicodeDecodeError' when using pip install
@@ -306,7 +306,7 @@ class DependencyHandler(BaseHandler):
def read_dependencies_from_METADATA(self, p):
"""read dependencies from distinfo/METADATA"""
dependencies = []
- with open(p, "r") as fin:
+ with open(p, "r", encoding='utf-8') as fin:
for line in fin:
line = line.replace("\n", "")
if line.startswith("Requires-Dist: "):
