Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求大神:在导入平台没有的sklearn模块显示下面错误,请问怎么解决,对于平台没有的模块怎么办? #90

Open
leafage-autumn opened this issue Dec 10, 2018 · 1 comment

Comments

@leafage-autumn
Copy link

Traceback (most recent call last):
File "Logistic_regression_demo_03.py", line 13, in
from sklearn import datasets
File "/usr/local/hadoop/tmp/nm-local-dir/usercache/root/appcache/application_1543824764893_0001/container_1543824764893_0001_01_000002/sklearn/init.py", line 63, in
from . import __check_build
File "/usr/local/hadoop/tmp/nm-local-dir/usercache/root/appcache/application_1543824764893_0001/container_1543824764893_0001_01_000002/sklearn/__check_build/init.py", line 46, in
raise_build_error(e)
File "/usr/local/hadoop/tmp/nm-local-dir/usercache/root/appcache/application_1543824764893_0001/container_1543824764893_0001_01_000002/sklearn/__check_build/init.py", line 41, in raise_build_error
%s""" % (e, local_dir, ''.join(dir_content).strip(), msg))
ImportError: No module named _check_build


Contents of /usr/local/hadoop/tmp/nm-local-dir/usercache/root/appcache/application_1543824764893_0001/container_1543824764893_0001_01_000002/sklearn/__check_build:
init.py pycache _check_build.cp36-win_amd64.pyd
setup.py init.pyc


It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget
to build the package before using it: run python setup.py install or
make in the source directory.

If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.
mv: cannot stat 'B6ED14D4-A27C-476E-B10D-B9A07A8D6612': No such file or directory
mv: cannot stat '98A50D03-28DF-48F1-91D6-E788D587714C': No such file or directory

@sinllychen
Copy link
Contributor

@leafage-autumn 你去集群里面所有的机器上安装一下scikit-learn就行了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants