TypeError: canonicalize_version() got an unexpected keyword argument strip_trailing_zero
🐛 Bug Description
When install pyqlib via poetry, python3.10, I met a dependency conflict that prevented the installation from completing successfully.
I think that's because the version conflict of packaging https://github.com/pypa/setuptools/issues/4483
I want to upgrade packaging to 22.0 but qlib has limited the version to below 22.0.
To Reproduce
Steps to reproduce the behavior:
- poetry add pyqlib
Expected Behavior
Install sucessfully
Screenshot
Environment
Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.
- Qlib version: 0.9.5
- Python version: 3.10
- OS (
Windows,Linux,MacOS): MacOS - Commit number (optional, please provide it if you are using the dev version):
Additional Notes
Hi, @sailxjx
I saw your issue and at the time you asked it, qlib didn't support python 3.10, but fortunately, qlib has recently made some adjustments and now supports python 3.10, so you can try pulling the latest code and installing it with make install or make dev.