termux + python + scikit-learn

问题:
按照 官方安装文档 文档安装完 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

你可能感兴趣的:(termux + python + scikit-learn)