简体   繁体   English

ModuleNotFoundError:没有名为“skmultilearn”Jupyter 的模块

[英]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 安装skmultilearnpip 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.我发布这个是因为许多新用户将面临这个问题。

  1. Open Jupyter Notebook terminal and go into python .打开Jupyter Notebook terminal并进入python
  2. Type, help('modules') .输入, help('modules') You will get a list of all packages available to you.您将获得所有可用软件包的列表。 99% chance is that you will not find skmultilearn in that list. 99% 的可能性是您不会在该列表中找到skmultilearn
  3. Now, go to command prompt aka cmd .现在,转到命令提示符又名cmd
  4. Type, 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
  5. Now type, 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)
  6. Good now type, pip3 install jupyter .现在输入好, pip3 install jupyter
  7. Then, again install pandas and seaborn as your need, pip install pandas and pip install seaborn .然后,再次根据需要安装pandasseabornpip install pandaspip 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.

相关问题 ModuleNotFoundError:jupyter 中没有名为“pymysql”的模块 - ModuleNotFoundError: No module named 'pymysql' in jupyter ModuleNotFoundError:没有名为“pandas”的模块 - Jupyter - ModuleNotFoundError: No module named 'pandas' - Jupyter ModuleNotFoundError:Jupyter 中没有名为“matploitlib”的模块 - ModuleNotFoundError: No module named 'matploitlib' in Jupyter jupyter ModuleNotFoundError:没有名为 matplotlib 的模块 - jupyter ModuleNotFoundError: No module named matplotlib Jupyter 笔记本错误 ModuleNotFoundError:没有名为“datascience”的模块 - Jupyter notebook error ModuleNotFoundError: No module named 'datascience' ModuleNotFoundError:没有名为“numpy”的模块 - Jupyter Notebook - ModuleNotFoundError: No module named 'numpy' - Jupyter Notebook ModuleNotFoundError:jupyter 笔记本上没有名为“web3”的模块 - ModuleNotFoundError: No module named 'web3' on jupyter notebook ModuleNotFoundError:Jupyter Notebook 上没有名为“tensorflow”的模块 - ModuleNotFoundError: No module named 'tensorflow' on Jupyter Notebook ModuleNotFoundError:jupyter 笔记本中没有名为“seaborn”的模块 - ModuleNotFoundError: No module named 'seaborn' in jupyter notebook ModuleNotFoundError:Jupyter 笔记本上没有名为“cv2”的模块 - ModuleNotFoundError: No module named 'cv2' on Jupyter notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM