robertmartin8 / PyPortfolioOpt

Financial portfolio optimisation in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity
https://pyportfolioopt.readthedocs.io/
MIT License
4.25k stars 928 forks source link

Cannot install v1.5.4 with python v3.11+ #527

Closed jlchereau closed 7 months ago

jlchereau commented 1 year ago

Describe the bug

I run Python 3.11.2 on windows 11:

ERROR: Ignored the following versions that require a different python version: 1.5.3 Requires-Python >=3.8,<3.11; 1.5.4 Requires-Python >=3.8,<3.11
ERROR: Could not find a version that satisfies the requirement pyportfolioopt==1.5.4 (from versions: 0.1.0rc1, 0.1.0, 0.1.1, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2)
ERROR: No matching distribution found for pyportfolioopt==1.5.4

Expected behavior Should install latest version

Code sample N/A

Operating system, python version, PyPortfolioOpt version Python 3.11.2 on windows 11

Additional context Workaround: use pip option --ignore-requires-python

88d52bdba0366127fffca9dfa93895 commented 1 year ago

Hi @jlchereau, could you please try to install latest code on the branch master and confirm that you can install with python v3.11+ on you environment?