【发布时间】:2017-11-14 14:16:23
【问题描述】:
我尝试在我的 Mac 上使用 coremltools 将 caffemodel 转换为 mlmodel。
按照“ pip install -U coremltools ”,我得到了这个: " 收集 coremltools 找不到满足 coremltools 要求的版本(来自版本:) 没有为 coremltools 找到匹配的分布 " enter image description here
而且,我的 python 版本是“Python 2.7.10”, numpy 版本是“numpy (1.12.1)”, protobuf 版本是“protobuf (3.2.0)”
我使用了“pip search coremltools”,得到了“coremltools (0.3.0) - Community Tools for CoreML”, 但是“ pip install coremltools==0.3 ”得到了“找不到满足coremltools==0.3要求的版本(来自版本:) 没有找到 coremltools==0.3 "的匹配分布
wtf?有人也得到这个吗?
【问题讨论】:
-
我也遇到了同样的问题!与您的环境略有不同的是,我在使用 Python 3.5.2 的 virtualenv 下
-
更新:我使用'virtualenv --python=python2.7'将环境设置为2.7,然后'pip install coremltools'可以成功安装工具。
-
Tomjosun:听起来像是对我的回答。