我爱编程

pip 安装 Python 组件时的版本问题

2018-04-11  本文已影响0人  tsiic

在学习TF的时候需要安装一个python组件,指令如下:
pip install --upgrade virtualenv
执行后会报错,

matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.

numpy要求1.5以上,而Python2.7预装的是1.8.0rc1,导致版本号识别有问题,无法满足版本需求
搞了半天最后升级了Python到2.7.14就行了brew install python2🤷‍♂️

上一篇 下一篇

猜你喜欢

热点阅读