2015-08-09 158 views
9

激活的virtualenvPIP安装与畅达安装

source activate myVirtualEnv 

是如何从conda install basemappip install basemap不同后?两者都给了我不同的结果,为什么呢?

PIP安装底图

Collecting basemap 
    Could not find a version that satisfies the requirement basemap (from versions:) 
    Some externally hosted files were ignored as access to them may be unreliable (use --allow-external basemap to allow). 
No matching distribution found for basemap 

畅达安装底图

Successfully installs

回答

10

皮普从PyPI安装。 PyPI上没有basemap包的发布,它只是一个简单的注册页面,指向真正的下载位置(SourceForge)。

Conda从its own repository中提取,通常使用Conda针对的社区常用库的便利版本。 Conda的仓库有一个可用于安装的底图软件包版本,因此它成功了。

这并不是说在这种情况下Pip比Conda“差”,因为您可以轻松下载软件包并在本地安装pip。这个特定的库只是选择不向PyPI添加版本。