想要安装 tflite-model-maker
刚开始直接
pip install tflite-model-maker
但是出现了如下错误
https://stackoverflow.com/questions/71290994/i-cant-install-tensorflow-model-maker-on-apple-silicon
忘了在哪看到,反正只要将官方提供的 requirements.txt 都装上就行
https://github.com/tensorflow/examples/blob/master/tensorflow_examples/lite/model_maker/requirements.txt
安装 requirements 的时候一开始遇到了一个错误,忘了具体是什么,我装了 tensorflow 之后就消失了
后来遇到了 找不到满足要求urlib3的版本 的错误
参考 https://www.pythonf.cn/read/81744
改成
pip install -r requirements -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
就行了 (很奇怪,我的pip默认就是豆瓣源,不知道为什么还要再次指定)
安装完了requirements后再安装 tflite-model-make就能装上了
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)