美文网首页我爱编程
pip 安装 Python 组件时的版本问题

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

作者: tsiic | 来源:发表于2018-04-11 14:14 被阅读0次

在学习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🤷‍♂️

相关文章

网友评论

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

    本文链接:https://www.haomeiwen.com/subject/sjoahftx.html