User Tools

Site Tools


conda_notes

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
Next revisionBoth sides next revision
conda_notes [2024/04/07 01:58] – [environment file to install from a specific git branch] rajuconda_notes [2024/05/15 04:11] – [find the package version] admin
Line 147: Line 147:
 Ref:- https://conda.io/docs/commands/conda-list.html Ref:- https://conda.io/docs/commands/conda-list.html
  
 +==== what version of a package is installed in all the environments? ====
 +<code>
 +conda info --envs | grep -v "^#" | cut -f 1 -d ' ' | xargs -I{} sh -c "conda list foo -n {}"
 +</code>
 +For example, to check what versions of pandas is installed in all the environments, do
 +<code>
 +conda info --envs | grep -v "^#" | cut -f 1 -d ' ' | xargs -I{} sh -c "conda list ^pandas$ -n {}"
 +</code>
 +Note:- We have to use ''^pandas$'' instead of ''pandas'' since the latter will show versions of other packages that have pandas in their name (ex:- pandas-datareader)
 ==== list available package versions ==== ==== list available package versions ====
  
Line 385: Line 394:
 tags | <nowiki>--find-links</nowiki>, pip config local packages, how to specify local repo location for pip packages, conda install pip package from a "local directory" tags | <nowiki>--find-links</nowiki>, pip config local packages, how to specify local repo location for pip packages, conda install pip package from a "local directory"
  
-==== environment file to install from a specific git branch ====+==== specify package version with git+https ====
 <code> <code>
 name: test_chessli name: test_chessli
Line 402: Line 411:
   * https://stackoverflow.com/questions/47617552/how-can-i-specify-a-custom-git-branch-in-my-pipfile - where I found the answer   * https://stackoverflow.com/questions/47617552/how-can-i-specify-a-custom-git-branch-in-my-pipfile - where I found the answer
   * https://github.com/lervag/apy/tags?after=v0.9.1 - versions of the api package < 0.9.1   * https://github.com/lervag/apy/tags?after=v0.9.1 - versions of the api package < 0.9.1
 +
 +tags | pip "git+https" release, conda "git+https" release, conda git depend on a "specific release", specify package version with git+https in conda environment file
  
 ===== dummy ===== ===== dummy =====
conda_notes.txt · Last modified: 2024/05/15 04:17 by admin