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

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

(固然,在安装别的python包的时候可能也会出现)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的版本问题(暂无考证)bash

第三个是由于咱们没有Mac自带的six库的权限tornado

解决方案:

在控制台里依次输入如下命令:工具

sudo easy_install nose
复制代码
sudo easy_install tornado
复制代码
sudo pip install -U coremltools --ignore-installed six
复制代码

 

广告时间:

你们若是正好想学iOS开发的话,能够来看看小弟的iOS视频教程,有更新有售后有辅导: m.cctalk.com/inst/s9vfhe…ui

相关文章
相关标签/搜索