pip show显示包的安装路径

本文探讨了使用Pip与Conda安装Python包的不同之处。Pip通常从PyPI安装包,但若某些包未在PyPI发布,则可能安装失败。Conda则有自己的仓库并包含常见社区库的便捷构建版本,因此对于某些不在PyPI上的包也能成功安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

"Pip installs from PyPI. There are no releases of the basemap package on PyPI, it is just a simple registration page pointing at the real download location (SourceForge).

Conda pulls from its own repository, typically with convenience builds of libraries common to the community Conda is aimed at. Conda’s repository has a version of the basemap package available for installation, so it succeeds.

This is not to say that Pip is “worse” than Conda in this instance, as you could easily download the package and install it with pip locally. This particular library has just opted to not add releases to PyPI."
转载自 https://stackoverflow.com/questions/31899966/pip-install-vs-conda-install/31900002#31900002

打开cmd,用pip show xxxx 可以显示pip install的包的安装路径

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值