我试图删除一个显然是在某个时候安装的包(实际上不记得了),但我发现它比我想象的要难(包的名称是astropy
)。在
如果我这样做:
^{1}$软件包列为已安装。在
但如果我尝试:
^{pr2}$软件包未列为已安装。在
如果我这样做:
pip search astropy
该包在PyPi中作为可用包列出。在
如果我尝试:
pip uninstall astropy
我得到:
Cannot uninstall requirement astropy, not installed
Storing debug log for failure in /home/gabriel/.pip/pip.log
为什么这样不行?如何从系统中删除此包?在
pyenv
安装在我的系统中,并且在本地设置为不同的版本,这就是为什么包没有显示。对不起大家,这个问题应该被关闭/删除。在
https://pip.pypa.io/en/latest/reference/pip_search.html
“搜索其名称或摘要包含您的查询的PyPI包”。在
astropy存在于PyPI中,但没有安装在您的系统中
尝试:
^{pr2}$而是获取已安装软件包的列表。在
为了完整起见回答我自己的问题。在
pyenv
安装在我的系统中,并且在本地设置为不同的版本,这就是为什么包没有显示。在相关问题 更多 >
编程相关推荐