Python/Installing cvxpy 包错误 - setup.py egg_info 错误代码 1

Python/Installing cvxpy package error - setup.py egg_info with error code 1

我正在尝试通过 pip 和 PyCharm 在我的 Mac 上安装 cvxpy,但出现以下错误:"Command "python setup.py egg_info" 在 /private/tmp/pip-build-azdpOA/CVXcanon/ 中失败,错误代码为 1"。有人知道那是什么以及如何解决这个问题吗?

我的python是2.7
我的 pip 是 8.1.2
我的 PyCharm 是 4.5.4
我的 OSX 是 10.8.5

模块 CVXcanonofficial installation instructions 的依赖项。

We recommend using Anaconda rather than the Python that comes with the Mac and installing pip, nose, NumPy, SciPy, and CVXOPT through Anaconda (i.e., conda install pip nose numpy scipy cvxopt). But it is not necessary to have Anaconda to install CVXPY, and the instructions below assume you do not have Anaconda.

安装命令行工具xcode-select --install,然后安装包含所有依赖项的模块pip install cvxpy。您可以使用 PyCharm 中的 Terminal 选项卡。