2016-05-15 594 views
0

我试图通过PIP,并通过PyCharm我的Mac上安装cvxpy,我得到以下错误:“命令”蟒蛇setup.py egg_info “/ private/tmp/pip-build-azdpOA/CVXcanon /”中的错误代码1失败。谁会知道那是什么以及如何解决这个问题?的Python /安装cvxpy包错误 - setup.py egg_info,错误代码1

我的Python是2.7
我的PIP是8.1.2
我PyCharm是4.5.4
我的OSX是10.8.5

回答

1

模块CVXcanon是由official 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选项卡。

相关问题