[英]Packages listed multiple times for an environment in anaconda's “conda list”
When I list packages in a conda environment, I get eg the following result: 当我在conda环境中列出软件包时,我得到例如以下结果:
$ conda list
# packages in environment at /Users/tkb/anaconda3/envs/xxx:
#
_nb_ext_conf 0.4.0 py35_1
anaconda-client 1.6.3 py35_0
appnope 0.1.0 py35_0
backports.weakref 1.0rc1 <pip>
bleach 1.5.0 <pip>
bleach 1.5.0 py35_0
clyent 1.2.2 py35_0
decorator 4.0.11 py35_0
entrypoints 0.2.3 py35_0
html5lib 0.999 py35_0
html5lib 0.9999999 <pip>
ipykernel 4.6.1 py35_0
....
Some of the packages are present multiple times with different versions and differ in the third column. 其中一些软件包以不同的版本多次出现,并且在第三栏中有所不同。 What effect does this have, and what does the third column mean? 这有什么作用,第三栏是什么意思?
The third column tells you how the package was installed. 第三列告诉您如何安装软件包。 If it has pyXX_Y
, it was installed by conda, and the XX
indicate the Python major and minor version (ie, 35
is Python 3.5), and the build number of the package, which is an internal number used by conda to help judge which versions of a package are newer when the version of the software in the package is the same. 如果它具有pyXX_Y
, pyXX_Y
安装,并且XX
指示Python的主要和次要版本(即35
是Python 3.5),以及软件包的内部版本号,这是conda用于帮助判断哪个内部版本号。当软件包中的软件版本相同时,软件包的版本会更新。 If the third column says <pip>
, the package was installed by pip. 如果第三列显示<pip>
,则该软件包是通过pip安装的。 Sometimes, there's a fourth column when the package was installed by conda; 有时,conda安装软件包时会有第四列。 this column indicates the channel the package was installed from (specified by -c
or --channel
in the install
or create
command). 此列指示软件包安装的通道(由install
或create
命令中的-c
或--channel
指定)。
As for what effect this has, it probably depends on the package. 至于它的效果,可能取决于包装。 In general, the advice is to install packages into conda environments using conda whenever possible, because conda can't manage (uninstall, upgrade, etc.) packages that were installed by pip. 通常,建议是尽可能使用conda将软件包安装到conda环境中,因为conda无法管理(卸载,升级等)pip安装的软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.