iOS--pip安装coremltools时错误-ERROR: requires nose,tornado;Cannot uninstall 'six'

1,335 阅读1分钟

在用pip(python的包管理工具)安装coremltools的时候可能会出现以下错误:

(当然,在安装别的python包的时候可能也会出现)

ERROR: matplotlib 1.3.1 requires nose, which is not installed. 
ERROR: matplotlib 1.3.1 requires tornado, which is not installed
ERROR: Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

原因:

第一第二个可能是因为Mac自带的python的版本问题(暂无考证)

第三个是因为我们没有Mac自带的six库的权限

解决方案:

在控制台里依次输入以下命令:

sudo easy_install nose
sudo easy_install tornado
sudo pip install -U coremltools --ignore-installed six

 

广告时间:

大家如果正好想学iOS开发的话,可以来看看小弟的iOS视频教程,有更新有售后有辅导: m.cctalk.com/inst/s9vfhe…