[英]ModuleNotFoundError: No module named 'skmultilearn' Jupyter
Tried cloning git to Jupyter folder on Windows.尝试将 git 克隆到 Windows 上的 Jupyter 文件夹。 No progress.
没有进展。 I have installed SKMultilearn in the same folder as Jupyter.
我已将 SKMultilearn 安装在与 Jupyter 相同的文件夹中。
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-22-b987f02e7825> in <module>()
5 return_indicator = 'sparse', allow_unlabeled = False)
6
----> 7 from skmultilearn.adapt import MLkNN
8
9 classifier = MLkNN(k=20)
ModuleNotFoundError: No module named 'skmultilearn'
Are you sure that skmultilearn has been correctly installed?你确定 skmultilearn 已经正确安装了吗? It does not depend on the subdirectory where you did the installation.
它不依赖于您进行安装的子目录。
Open a terminal window in your Jupyter browser, go into python在 Jupyter 浏览器中打开一个终端窗口,进入 python
ipython
蟒蛇
and then check out the modules that has been installed:然后查看已经安装的模块:
[1] help('modules')
[1] 帮助('模块')
You will get a list of all packages available to you.您将获得所有可用软件包的列表。 skmultilearn should be in the list if it was correctly installed.
如果正确安装,skmultilearn 应该在列表中。
I faced the same issue and couldn't find a solution.我遇到了同样的问题,找不到解决方案。 Remember, you must have installed skmultilearn first from cmd,
pip install scikit-multilearn
.请记住,您必须首先从 cmd 安装skmultilearn ,
pip install scikit-multilearn
。 If you have done this and still Jupyter Notebook is saying ModuleNotFoundError: No module named 'skmultilearn' , then my solution is for you.如果您已完成此操作,但 Jupyter Notebook 仍显示ModuleNotFoundError: No module named 'skmultilearn' ,那么我的解决方案适合您。
I tried and managed to find an easy solution.我尝试并设法找到了一个简单的解决方案。 I hope that you might have found a solution as this question was asked 3 years ago.
我希望您可能已经找到了解决方案,因为这个问题是 3 年前提出的。 I am posting this because many new users will be facing this issue.
我发布这个是因为许多新用户将面临这个问题。
terminal
and go into python
.terminal
并进入python
。help('modules')
.help('modules')
。 You will get a list of all packages available to you.skmultilearn
in that list. skmultilearn
。cmd
.cmd
。pip3 install ipykernel --upgrade
, then py -3 -m ipykernel install --user
, you will get this, Installed kernelspec python3 in C:\\Users\\MC\\AppData\\Roaming\\jupyter\\kernels\\python3
.pip3 install ipykernel --upgrade
,然后py -3 -m ipykernel install --user
,你会得到这个, Installed kernelspec python3 in C:\\Users\\MC\\AppData\\Roaming\\jupyter\\kernels\\python3
。pip install scikit-multilearn
.pip install scikit-multilearn
。 It will say Requirement already satisfied: scikit-multilearn in c:\\python396\\lib\\site-packages (0.2.0)
Requirement already satisfied: scikit-multilearn in c:\\python396\\lib\\site-packages (0.2.0)
pip3 install jupyter
.pip3 install jupyter
。pip install pandas
and pip install seaborn
.pip install pandas
和pip install seaborn
。 Enjoy, issue resolved.享受,问题已解决。 You will not face this error :)
你不会面临这个错误:)
pip install scikit-multilearn pip 安装 scikit-multilearn
pip install scikit-multilearn
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.