简体   繁体   English

如何安装Anaconda中包含的所有软件包?

[英]How do I install all packages that are included in Anaconda?

I'm attending a course which advises us to use anaconda. 我正在上一门课程,建议我们使用蟒蛇。 Because of this, there is no requirements.txt, but rather only packages included in anaconda are required. 因此,没有requirements.txt,而是仅需要anaconda中包含的软件包。

Since I already have a python environment set up, I dont want to install another python. 由于我已经设置了python环境,所以我不想安装其他python。 Is there a requirements.txt that installs all packages from anaconda? 是否有require.txt文件可以安装anaconda的所有软件包?

Check https://docs.anaconda.com/anaconda/packages/pkg-docs when you select the desired python version and target OS and architecture you will see all available packages and there is a column with the packages that are included by default in the anaconda installer. 当选择所需的python版本以及目标操作系统和体系结构时,请检查https://docs.anaconda.com/anaconda/packages/pkg-docs ,您将看到所有可用的软件包,并且默认情况下,其中包含这些软件包的列anaconda安装程序。

For example python 2.7 win 64bits 例如 python 2.7 win 64bits

You could make a python script to check for <i class="fa fa-check"></i> and make a txt of the default packages. 您可以制作一个python脚本来检查<i class="fa fa-check"></i>并制作默认软件包的txt。

EDIT: Adding another way I suggested in comments below. 编辑:添加我在下面的评论中建议的另一种方式。

Alternative method: Using online regex web services 替代方法:使用在线正则表达式Web服务

Step 1: copy the html table removing for simpler regex the unnecesary tags and keeping the tr td tags like so 步骤1:复制html表以删除更简单的正则表达式不必要的标签并像这样保留tr td标签

<tr> <td><a href="https://github.com/ContinuumIO/anaconda-nb-extensions-meta-config">_nb_ext_conf</a></td> <td>0.4.0</td> <td>A configuration metapackage for enabling Anaconda-bundled jupyter extensions / BSD</td> <td></td> </tr>

Step 2: Paste it into a regex web like regexr and craft your regex, I managed to come up real quick with this one: <td><a.+">(.+)<\\/a><\\/td>\\s+<td>.+<\\/td>\\s+<td>.+<\\/td>\\s+<td><i.+check.+<\\/td> im pretty sure it can be improved but works. 第2步:将其粘贴到regexr之类的正则表达式网络中并制作正则表达式,我设法快速提出了这一点: <td><a.+">(.+)<\\/a><\\/td>\\s+<td>.+<\\/td>\\s+<td>.+<\\/td>\\s+<td><i.+check.+<\\/td>我肯定可以改进但可以使用。

Step 3: get your list by specifying how you want to output your capture group: $1 \\n $1 is your capture group and \\n is newline, so you would get a list of packages like so: 步骤3:通过指定输出捕获组的方式来获取列表: $1 \\n $ 1是捕获组,\\ n是换行符,因此您将获得如下软件包列表:

alabaster anaconda-client anaconda-navigator anaconda-project asn1crypto astroid astropy babel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Anaconda:如何安装不在Anaconda目录中的软件包? - Anaconda: how to install packages not in Anaconda Directory? 如何在已经安装 python3.8 的 anaconda 下安装 python2.7 包? - How do I install python2.7 packages under anaconda with python3.8 already in place? 如果我使用 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 中安装 pip 包? - How to install pip packages in Anaconda? Windows 10上Anaconda3如何获取安装包的权限? - How do obtain permissions to install packages for Anaconda3 on Windows 10? 如何在 PyCharm 中为所有项目安装包? - How do I install packages in PyCharm for all projects? 在所有Anaconda环境中安装软件包 - Install Packages Onto All Anaconda Environments Python:我在哪里可以找到 Anaconda 导航器的“gf”之类的软件包,如何安装它们? Python 版本 3.6 - Python: Where do I find packages like “gf” for the Anaconda Navigator and how do I install them? Python Version 3.6 如何在蟒蛇中安装biopython? - How do I install biopython in anaconda? 如何在 anaconda 上安装 tensorflow 2.4&gt;? - How do I install tensorflow 2.4> on anaconda?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM