問題:
按照 官方安裝文檔 文檔安裝完 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?) 信號量相關操作沒實現(xiàn) .
workaround:
回退到 0.19.2 版本
$ pip install scikit-learn==0.19.2