Closed Fabioozen closed 11 months ago
Hi @Fabioozen, the error said you dont have cmake, you could try pip install cmake
then install this library. Let me know if you still have any question.
pip install cmake
Requirement already satisfied: cmake in ./.venv/lib/python3.8/site-packages (3.27.5)
I tried running again pip install pyportfolioopt just in case, but It's giving me the same exact error.
maybe uninstall cmake then reinstall pypopt, your problem similar to this SO https://stackoverflow.com/a/73382564
Thanks for the quick reply.
I did what you suggested and it doesn'work: after pip uninstall cmake
with success, pip install cmake
with success, pip install pyportfolioopt
resulted in the same error. I re-tried the process with both pip3 uninstall and install just in case.
I wonder if osqp and cvxpy play a role in the issue...
Nothing works 😭
maybe this will work: pip3 uninstall cmake
, and then retry installing the original library: pip3 install pyportfolioopt
@Fabioozen please try that and dont install pip install cmake
As I said, I already tried pip3 uninstall and install
I mean you could try these 2 steps:
pip3 uninstall cmake
pip install pyportfolioopt
instead of 3 steps in your comment:
pip3 uninstall cmake
pip install cmake
pip install pyportfolioopt
Thanks for the quick reply.
I did what you suggested and it doesn'work: after
pip uninstall cmake
with success,pip install cmake
with success,pip install pyportfolioopt
resulted in the same error. I re-tried the process with both pip3 uninstall and install just in case.I wonder if osqp and cvxpy play a role in the issue...
Nothing works 😭
Doesn't work, just tried.
It's strange for me, if you could fix this issue by any method, please let me know and close this issue. Thanks you.
This is a mac os related problem. I solved the problem by installing cmake using brew with the platform.
arch -arm64 brew install cmake
Then:
pip install pyportfolioopt
Thanks @meshudn I had the same problems as above and did
brew install cmake
pip install pyportfolioopt
Success
Operating system, environment, python version MacOS chip M2, visual studio venv, python3.8.10
What you tried pip install pyportfolioopt
Error message
I'm a newbie in this field, but I followed most of the answers on this page as well as StackOverflow regarding this issue. I created a venv, installed Xcode, Cmake, as well as other python packages; I've been trying to solve this issue for a week :(
Thank you in advance for your support!