termux + python + scikit-learn

2019-08-22  本文已影响0人  紫菜包饭哟嘻

问题:
按照 官方安装文档 文档安装完 numpy 和 scipy, pip 安装 pandas, scikit-learn最新版(0.21.3) 后。导入 scikit-learn 报错如下:

This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.

原因是 android 版 python (或者是android?) 信号量相关操作没实现 .

workaround:
回退到 0.19.2 版本

$ pip install scikit-learn==0.19.2
上一篇下一篇

猜你喜欢

热点阅读