This is the process of installing cvxpy on Mac M1 (since pip install cvxpy is not working directly):
step 1: install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
step 2: install cmake
brew install cmake
step 3: install cvxpy
pip install cvxpy
The cvxpy website has addressed the problem directly. To summarize, there is no problem using pip for versions 1.1.19/1.2.0 and above, as long as:
Here are the steps to install cvxpy on Mac M1:
step 1: install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
step 2: install cmake
brew install cmake
step 3: install cvxpy
pip install cvxpy