LKI / chinese-calendar

判断一天是不是法定节假日/法定工作日(查看节假日安排)
https://pypi.org/project/chinesecalendar/
MIT License
1.06k stars 185 forks source link

python 2.7.5 install chinesecalendar error #72

Closed hampluo closed 3 years ago

hampluo commented 3 years ago

Downloading chinesecalendar-1.5.1.tar.gz (9.4 kB) ERROR: Command errored out with exit status 1: command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/tc/cls8jwsn6fd6hvmph42vxyp00000gn/T/pip-install-ZdYNb5/chinesecalendar/setup.py'"'"'; file='"'"'/private/var/folders/tc/cls8jwsn6fd6hvmph42vxyp00000gn/T/pip-install-ZdYNb5/chinesecalendar/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/tc/cls8jwsn6fd6hvmph42vxyp00000gn/T/pip-pip-egg-info-e9vti7 cwd: /private/var/folders/tc/cls8jwsn6fd6hvmph42vxyp00000gn/T/pip-install-ZdYNb5/chinesecalendar/ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "/private/var/folders/tc/cls8jwsn6fd6hvmph42vxyp00000gn/T/pip-install-ZdYNb5/chinesecalendar/setup.py", line 6, in with open("README.md", "r", encoding="utf-8") as f: TypeError: 'encoding' is an invalid keyword argument for this function

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

LKI commented 3 years ago

悲伤的消息:python 2.7 目前没有官方支持了……

可以考虑自行转译常量文件