gpt4 book ai didi

Scikit-surprise import not recognized(Scikit-surprise导入无法识别)

转载 作者:bug小助手 更新时间:2023-10-28 22:22:23 26 4
gpt4 key购买 nike



I have tried installing scikit-surprise using the following command

我已经尝试使用以下命令安装SCRIPKIT-SECHING


conda install -c conda-forge scikit-surprise

But when running the import on my jupyter notebook

但是当在我的jupyter笔记本上运行导入时,


from surprise import Dataset

I get the following error

我得到以下错误


ModuleNotFoundError: No module named 'surprise'

I'm currently using Python 3.11.4 on Windows 10 and tried to reinstall the kit several times

我目前在Windows 10上使用的是Python 3.11.4,并多次尝试重新安装该工具包


更多回答

How did you insure that it was installing to the proper environment where you are running your Jupyter Notebook? If you don't want to take the time to sort that out, you can try running in your notebook where you want to try the import statement %conda install -c conda-forge scikit-surprise. Let it run completely and then restart the kernel. Then try running the import statement.

您如何确保它安装在您运行Jupyter笔记本的适当环境中?如果你不想花时间来解决这个问题,你可以试着在你的笔记本上运行你想要尝试的导入语句%conda install-c conda-forge cikit-shannet。让它完全运行,然后重新启动内核。然后尝试运行IMPORT语句。

That magic install command I suggested insures it installs to the correct environment where the kernel is running that underlies your active .ipynb file. See here for more about it. It is the modern best practice for installing from within the running notebook using Anaconda/conda as your primary package manager.

我建议的那个神奇的安装命令可以确保它安装到运行内核的正确环境中,该环境是活动的.ipynb文件的基础。有关它的更多信息,请参见此处。这是使用Anaconda/Conda作为主要包管理器从运行的笔记本中进行安装的现代最佳实践。

优秀答案推荐
更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com