如何编辑scikit-learn的分叉副本?

时间:2018-09-06 23:48:44

标签: scikit-learn

我正在尝试编辑sklearn提供的NMF软件包。

为此,我分叉并克隆了自己的sklearn副本。

但是,我正在努力导入我的sklearn的克隆和编辑副本,而不是标准版本。因为,如果我只是尝试写

import sklearn

我导入标准版本,而不是我自己的编辑版本。另一方面,如果我尝试将目录中的名称更改为please_work,则会出现以下错误:

ImportError: No module named 'please_work.sklearn.__check_build._check_build'
___________________________________________________________________________
Contents of /home/jovyan/please_work/sklearn/__check_build:
setup.py                  __pycache__               _check_build.pyx
__init__.py
___________________________________________________________________________
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.

我完全不知所措,非常感谢您的帮助!

0 个答案:

没有答案