ModulenotFoundError:没有名为' skfuzzy'的模块

发布于 2025-02-08 16:53:44 字数 507 浏览 1 评论 0原文

当我尝试导入“ Skfuzzy”模块时,我会遇到此错误。我安装了Scikit模糊软件包,可以在已安装的软件包中看到它(使用“ Pip List”命令)。我尝试使用各种命令('pip install';“ pip3 install';“ pip3 -u安装”)安装和重新安装几次,但没有任何帮助。其他模块(例如Numpy和Matplotlib)工作正常。另外,安装后,我得到了此警告:

“警告:脚本f2py.exe安装在'c:\ users \ users \ anton \ anton \ appdata \ local \ packages \ pythonsoftwarefoundation.python.3.9_qbz5n2kfra8ppra \ lothcache \ lotascache \ lothcache \ lothcache \ local-packages \ python39 \ python39 \脚本不在路径上。 考虑将此目录添加到路径上,或者,如果您希望抑制此警告,请使用 - 不 - 录音。“

这是否连接到我的问题?我该如何解决?

When I'm trying to import the 'skfuzzy' module, I get this error. I installed the scikit-fuzzy package and I can see it among installed packages (using the 'pip list' command). I tried installing and re-installing it several times with various commands ('pip install'; 'pip3 install'; 'pip3 -U install') but nothing helped. Other modules such as numpy and matplotlib work fine. Also, after the installation I get this warning:

"WARNING: The script f2py.exe is installed in 'C:\Users\anton\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location."

Is this connected to my problem? How can I fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

傲鸠 2025-02-15 16:53:44

根据警告,请尝试进行以下操作:

  1. Windows + R
  2. type sysdm.cpl
  3. 转到“ Advance”选项卡,然后单击
  4. 用户变量中的环境变量[最好是]单击路径
  5. 单击新的路径,然后添加c:\ users \ users \ anton \ anton \ anton \ appdata \ local \ packages \ pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0 \ localcache \ local-package \ local-packages \ python39 \ scripts to路径

这会将脚本添加到您的环境variables中。希望这有帮助!

According to the warning, try and do the following:

  1. Windows + R
  2. Type sysdm.cpl
  3. Go to Advance Tab and click on Environment Variables
  4. In User variables [preferably] click on PATH
  5. Click on New and add C:\Users\anton\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts to PATH

This will add the scripts to your environment variables. Hope this helps!

独闯女儿国 2025-02-15 16:53:44

我使用“ easy_install -u scikit-fuzzy”命令而不是pip安装了scikit-fuzzy,并且确实删除了错误。

I installed the scikit-fuzzy using the "easy_install -U scikit-fuzzy" command instead of pip, and it did remove the error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文