[英]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.