Python implementation of PlanB Quant Investing article:
https://planbtc.com/20220807QuantInvesting101.pdf
https://twitter.com/100trillionUSD/status/1556626501692526597
I strongly recommend using a Python virtual environment with every project you work on to avoid problems with Python and library versions. See here.