简体   繁体   English

在anaconda的“ conda列表”中针对环境多次列出了软件包

[英]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_YpyXX_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). 此列指示软件包安装的通道(由installcreate命令中的-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.

相关问题 通过 Anaconda 上的“conda install”安装的包 提示未在 Anaconda 导航器上的环境的 package 列表中列出 - Packages installed through "conda install" on Anaconda Prompt not listed in the package list for the environment on Anaconda Navigator conda 列出不在 Jupyter 活动环境中的包 - conda list packages not from active environment in Jupyter Conda 列表未在虚拟环境中显示包 - Conda list not showing packages in virtual environment 将完整的anaconda软件包列表添加到现有的conda环境 - Add full anaconda package list to existing conda environment 如果我使用 pip 安装 Anaconda 中未包含的软件包,package 是否也会安装在 conda 环境中? - Does a package also gets installed in conda environment if I use pip to install packages not included in Anaconda? 如何在Anaconda(Conda)环境中跟踪pip安装的软件包? - How do I keep track of pip-installed packages in an Anaconda (Conda) environment? 当你创建一个新的 conda 环境时,它会自动包含 /usr/local/anaconda3/pkgs 中的所有包吗? - When you create a new conda environment, does it automatically include all packages in /usr/local/anaconda3/pkgs? 有没有办法在 conda 的 environment.yml 文件中指定“可选”包? - Is there a way to specify "optional" packages in conda's environment.yml file? 使用`conda list`中显示的所有包创建虚拟环境 - Create virtual environment with all packages shown in `conda list` 在 conda 中使用选定包的克隆环境 - Cloning environment with selected packages in conda
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM