之前是3.8版本,没有这个情况,升级python后,每次都会发出这个警告。
C:\Program Files\Python312\Lib\site-packages\xtquant__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import get_distribution |