简体   繁体   English

dist-packages 中缺少 sklearn

[英]sklearn missing from dist-packages

I needed to use the latest version of the sklearn which includes MLP.我需要使用包含 MLP 的最新版本的 sklearn。 I had installed sklearn through pip but it didn't go for latest version.我已经通过 pip 安装了 sklearn,但它没有安装最新版本。 so I downloaded the dev version trying to build/install it manually, but it didn't work and still, MLP is missing from the neural network.所以我下载了开发版本,尝试手动构建/安装它,但它没有工作,而且神经网络中仍然缺少 MLP。 I decided to remove sklearn, but it was only possible by using conda ( as they have mentioned in their website) and as am stupid, I removed the sklearn folder from dist-packages ( i couldn't use conda).我决定删除 sklearn,但只能通过使用 conda(正如他们在他们的网站中提到的那样),而且我很愚蠢,我从 dist-packages 中删除了 sklearn 文件夹(我不能使用 conda)。 now there is no sklearn folder there, but python is still able to import it( i don't know from where) and I can't install the dev version.现在那里没有 sklearn 文件夹,但是 python 仍然可以导入它(我不知道从哪里导入)并且我无法安装开发版本。 I need first, remove sklearn totally from the system, then install the dev version somehow.我首先需要从系统中完全删除 sklearn,然后以某种方式安装开发版本。 any help would be appreciated任何帮助将不胜感激

如果您使用的是 Windows,请在 Linux 或 Mac 中输入命令提示符/终端

pip install scikit-learn --upgrade

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM