User Tools

Site Tools


task_boiler

This is an old revision of the document!


task boiler

Place to cook the tasks. Once they are boiled enough, move them to a separate plate.

Start the first heading with “=====”

conda environment file to install different packages from different channels

Background:

yfinance library is the easiest and fastest way to download historical stock prices. Asof 2023-05-20, it is not available in the defaults channel. But is available in the conda-forge channel.

Goal:

The goal here is to pull the yfinance package from conda-forge but everything else from the defaults channel.

Solution:

 % cat env_test_yfinance.yml | stuff.py
name: test_yfinance
channels:
  - defaults
dependencies:
  - python=3.11
  - conda-forge::yfinance
 % conda env create -f ./env_test_yfinance.yml
 % conda list -n test_yfinance | grep conda-forge
multitasking              0.0.9              pyhd8ed1ab_0    conda-forge
yfinance                  0.2.18             pyhd8ed1ab_0    conda-forge
task_boiler.1684632698.txt.gz · Last modified: 2023/05/21 01:31 by raju