TencentCloud / tencentcloud-sdk-python

Tencent Cloud API 3.0 SDK for Python
Apache License 2.0
616 stars 251 forks source link

requests>=2.27.0,<=2.28.0一定要这个吗? #155

Closed chenjianjian closed 1 year ago

chenjianjian commented 1 year ago

requests>=2.27.0,<=2.28.0一定要这个版本吗?2.23.0版本支持吗?为什么会限制那么死

HS-Gray commented 1 year ago

感谢反馈,当时我们sdk在开发的时候使用的requests库是27版本的,所以版本号就限制在27以上了,后续我们回对低版本的requests库做测试,如果通过了会降低版本

daidi commented 1 year ago

还有高版本也会有报错,/usr/local/lib/python3.8/site-packages/requests/init.py:109: RequestsDependencyWarning: urllib3 (1.26.16) or chardet (5.1.0)/charset_normalizer (2.0.12) doesn't match a supported version!

tencentcloud-sdk-python 3.0.920 requires requests<=2.28.0,>=2.27.0, but you have requests 2.31.0 which is incompatible.

LKI commented 1 year ago

现在 requests 到了 2.31.0 了,建议兼容一下高版本