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

相關文章
相關標籤/搜索