pip install scikit-image時未檢測到已安裝的matplotlib;failed with erro code 1

ubuntu 16.04 用pip install 了 matplotlib 2.0.0 以後,安裝scikit-image時仍然需要安裝matplotlib的問題:
之前用pip install matplotlib時總出現 python setup.py egg info "failed with erro code 1"這裏我更新setuptools和easyinstall均沒有效果,只能安裝老版本的matplotlib,使用如下命令:
pip install matplotlib==2.0.0
然後在裝scikit-image時不知道爲什麼沒有檢測到我已經安裝了matplotlib,它又去重新安了一遍,當然結果肯定是失敗,經過嘗試,發現使用
sudo apt-get install python-matplotlib
可以裝上matplotlib,使scikit在檢測時跳過安裝matplotlib的過程。
再使用:
pip install scikit-image
即可安上。

你可能感兴趣的:(pip install scikit-image時未檢測到已安裝的matplotlib;failed with erro code 1)