Closed mtooooo closed 2 years ago
File "setup.py", line 5, in readme = f.read() UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 21: illegal multibyte sequence
1.报错的代码行: with open("README.rst") as f: readme = f.read() 2.将代码改为: with open("README.rst", encoding='utf-8') as f: readme = f.read()
with open("README.rst") as f: readme = f.read()
with open("README.rst", encoding='utf-8') as f: readme = f.read()
多谢, 已改
File "setup.py", line 5, in
readme = f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 21: illegal multibyte sequence
1.报错的代码行:
with open("README.rst") as f: readme = f.read()
2.将代码改为:with open("README.rst", encoding='utf-8') as f: readme = f.read()