User Tools

Site Tools


task_boiler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
task_boiler [2023/05/21 01:31] rajutask_boiler [2024/01/23 22:55] (current) raju
Line 3: Line 3:
  
 Start the first heading with "=====" 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: 
- 
-<code> 
- % cat env_test_yfinance.yml | stuff.py 
-name: test_yfinance 
-channels: 
-  - defaults 
-dependencies: 
-  - python=3.11 
-  - conda-forge::yfinance 
-</code> 
- 
-  * where stuff.py is a python script to strip out the comments - https://github.com/KamarajuKusumanchi/rutils/blob/master/python3/stuff.py 
-  * The environment file can be downloaded from https://github.com/KamarajuKusumanchi/rutils/blob/master/python3/envs/env_test_yfinance.yml 
- 
-<code> 
- % conda env create -f ./env_test_yfinance.yml 
-</code> 
- 
-<code> 
- % conda list -n test_yfinance | grep conda-forge 
-multitasking              0.0.9              pyhd8ed1ab_0    conda-forge 
-yfinance                  0.2.18             pyhd8ed1ab_0    conda-forge 
-</code> 
  
task_boiler.1684632698.txt.gz · Last modified: 2023/05/21 01:31 by raju