Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Reproduce "Anaconda Installer" default environment with conda-forge

19 views
Skip to first unread message

Marc

unread,
Nov 7, 2022, 7:05:38 PM11/7/22
to conda-forge
Hello,

Is there an easy existing method to reproduce (as close as possible) an environment with the packages that are automatically installed by the latest Anaconda Installer, but using Miniforge and only the conda-forge channel?

For example, is there an environment specification YAML that tracks the latest Anaconda Installer packages I could leverage?

The closest I could find is this table (I'm interested in the packages with the "In Installer" checkmark that are in conda-forge):

Is the best route just converting that table into a YAML specification, or is there an already existing way?

Thanks,
Marc

Marc

unread,
Nov 18, 2022, 5:52:45 PM11/18/22
to conda-forge
Here's some Python that implements a solution good enough for my need.

import requests
from bs4 import BeautifulSoup

url = "https://docs.anaconda.com/anaconda/packages/py3.10_win-64/"

html = requests.get(url)
soup = BeautifulSoup(html.content, "html.parser")
table = soup.find("table")

for tr in table.find_all("tr"):
  td_list = tr.find_all("td")
  if td_list:
    pkg_name = td_list[0].get_text()
    pkg_ver = td_list[1].get_text()
    if td_list[-1].find("i"):
      print(pkg_name)

Reply all
Reply to author
Forward
0 new messages