Luchkata / Algorithmic_Trading_Machine_Learning

202 stars 125 forks source link

PyPortfolioOpt will not install on Mac. Python Version 3.12 #1

Open vzicc opened 8 months ago

vzicc commented 8 months ago

I am unable to get PyPortfolioOpt to install on map. I have Xcode which means I have the required C++ but its still doesn't work. the error is: note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for qdldl Failed to build qdldl ERROR: Could not build wheels for qdldl, which is required to install pyproject.toml-based projects [end of output]

I the same error trying to install qdldl, cvxpy, and cvxopt.

srinivas-yarramsetti commented 6 months ago

Check this comments from Zichen-Wu: For me using brew install cmake instead of 'pip install cmake' solved the problem. You may need to uninstall cmake before install it with brew.

https://github.com/robertmartin8/PyPortfolioOpt/issues/274

shreyannandanwar commented 1 month ago

@vzicc I was facing the same problem the problem was fixed when I downgraded to Python 3.10. Hope it helps!!