pip表示模块“无法找到"卸载,但是点列表显示了它们 [英] pip says modules "weren't found" to uninstall, but pip list shows them

查看:1368
本文介绍了pip表示模块“无法找到"卸载,但是点列表显示了它们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

pip list中,我显示了已安装模块的列表,其中包括scipy,numpy和pandas.

如果我pip install -U...其中任何一个,它将对其进行检查,查看其最新状态,然后返回提示.但是,如果我pip uninstall pandas或列表中可以看到的任何物品,则显示为

Can't uninstall numpy. No files were found to uninstall

我通过Enthought的Canopy Stack安装了与Python有关的所有内容.

解决方案

使用Canopy进行安装/软件包管理时显然需要额外的注意-例如,devs/staff @ Enthought说(例如pip install some_package)

值得注意的是,在使用Canopy软件包管理器更新(33)个过时的软件包之后,'sklearn'模块让我import datasets. 注意:这些是最新的PIP套餐!

总结:如果安装了Canopy,请使用程序包管理器(即使上面的链接中列出了一些解决方法,也请始终使用IMHO)保持更新,然后根据需要从提示符处进行操作. 对于某些原因的画中画无法看到(?)Canopy管理的包裹!!!

With pip list I'm shown a listing of the installed modules, which includes scipy, numpy, and pandas.

If I pip install -U... any of those, it checks it, sees its up-to-date, and returns to prompt. But if I pip uninstall pandas or any of the items I can see in the list, it says

Can't uninstall numpy. No files were found to uninstall

I installed everything that has to do with Python through Enthought's Canopy Stack.

解决方案

Apparently there is some extra care required when installing/package managing with Canopy - for example, devs/staff @ Enthought say (eg https://support.enthought.com/entries/22914233-Using-non-EPD-package-installers-such-as-pip)

"The best practice, when you wish to install an EPD package from another source, is first to uninstall it (enpkg --remove some_package), then to install it using whatever technique you prefer" such as (pip install some_package)

It's worth noting that the 'sklearn' module is letting me import datasets after having used the Canopy Package Manager to update (33) out-of-date packages. NOTE: THESE WERE PACKAGES PIP SAID WERE UP-TO-DATE!

To sum up: if you installed Canopy, use the package manager (IMHO, always, even though there is some work-around listed in the link above) to keep updated and then work from the prompt if you choose. FOR SOME REASON PIP CANNOT SEE (?) THE PACKAGES BEING MANAGED BY CANOPY!!!

这篇关于pip表示模块“无法找到"卸载,但是点列表显示了它们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆