conda_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
conda_notes [2023/07/10 04:26] – [conda release numbers] raju | conda_notes [2024/04/07 02:02] (current) – [specify package version with "git+https" in conda environment file] raju | ||
---|---|---|---|
Line 2: | Line 2: | ||
==== tasks ==== | ==== tasks ==== | ||
* [[conda environment file to install different packages from different channels]] | * [[conda environment file to install different packages from different channels]] | ||
+ | * tags | conda-forge:: | ||
==== Remove an environment ==== | ==== Remove an environment ==== | ||
Line 37: | Line 38: | ||
==== update conda ==== | ==== update conda ==== | ||
+ | < | ||
+ | conda update -n base -c defaults conda --repodata-fn=repodata.json | ||
+ | </ | ||
+ | |||
< | < | ||
conda update -n < | conda update -n < | ||
Line 220: | Line 225: | ||
* conda config - https:// | * conda config - https:// | ||
* pinning packages - https:// | * pinning packages - https:// | ||
+ | |||
+ | ==== which solver am I using? ==== | ||
+ | Use | ||
+ | < | ||
+ | conda config --show solver | ||
+ | </ | ||
+ | or | ||
+ | < | ||
+ | conda config --show-sources | ||
+ | </ | ||
+ | |||
+ | |||
+ | Sample output: | ||
+ | < | ||
+ | $ conda config --show solver | ||
+ | solver: classic | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ conda config --show solver | ||
+ | solver: libmamba | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $conda config --show-sources | ||
+ | ==> C: | ||
+ | solver: libmamba | ||
+ | |||
+ | ==> cmd_line <== | ||
+ | debug: False | ||
+ | json: False | ||
+ | </ | ||
+ | |||
+ | See also:- | ||
+ | * https:// | ||
+ | |||
+ | ==== when was a conda environment created? ==== | ||
+ | < | ||
+ | conda env list | grep -v ' | ||
+ | </ | ||
+ | |||
+ | For example | ||
+ | < | ||
+ | % conda env list | grep -v ' | ||
+ | drwxr-xr-x 10 rajulocal rajulocal 4096 Apr 4 2020 / | ||
+ | drwxr-xr-x 23 rajulocal rajulocal 4096 Nov 8 2021 / | ||
+ | drwxr-xr-x 13 rajulocal rajulocal 4096 Jun 6 2022 / | ||
+ | drwxr-xr-x 27 rajulocal rajulocal 4096 Feb 28 2023 / | ||
+ | drwxr-xr-x 13 rajulocal rajulocal 4096 May 20 2023 / | ||
+ | drwxr-xr-x 18 rajulocal rajulocal 4096 Jun 30 00:45 / | ||
+ | drwxr-xr-x 27 rajulocal rajulocal 4096 Jul 11 01:07 / | ||
+ | drwxr-xr-x 24 rajulocal rajulocal 4096 Nov 12 04:44 / | ||
+ | </ | ||
+ | |||
+ | Ref: https:// | ||
===== activate conda environment ===== | ===== activate conda environment ===== | ||
Line 323: | Line 383: | ||
* https:// | * https:// | ||
- | tags | < | + | tags | < |
+ | |||
+ | ==== specify package version with git+https ==== | ||
+ | < | ||
+ | name: test_chessli | ||
+ | channels: | ||
+ | - defaults | ||
+ | dependencies: | ||
+ | - python=3.11 | ||
+ | - pandas=1.5.3 | ||
+ | - pip | ||
+ | - pip: | ||
+ | - chessli | ||
+ | - git+https:// | ||
+ | </ | ||
+ | |||
+ | Ref:- | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | tags | pip " | ||
===== dummy ===== | ===== dummy ===== | ||
Line 354: | Line 434: | ||
* https:// | * https:// | ||
- | ==== install zip file ==== | + | ==== twsapi conda environment |
* Build a wheel file from the zip file. | * Build a wheel file from the zip file. | ||
- | * See for example https:// | + | * See for example https:// |
- | * Configure pip to install its wheels from a local wheel directory | + | * Configure pip to install its wheels from a local wheel directory |
- | * '' | + | |
* Install the package | * Install the package | ||
- | * See https:// | + | * See for example |
+ | |||
+ | tags | conda envrionment install package from zip file, conda install zip package, install zip file |
conda_notes.txt · Last modified: 2024/04/07 02:02 by raju