Reputation: 81
I want to print only the version number of a particular package on terminal prefixing its name.
Something like this but for individual conda packages:
$ conda --version
conda 4.6.14
Is there any built in functions that I'm not aware?
Upvotes: 0
Views: 131
Reputation: 1717
conda list
is probably what you are looking for? with a prefix you can just grep
it.
conda list | grep ^ala
alabaster 0.7.12 py37_0
conda list | grep ^pytest
pytest 4.0.2 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.5.0 py37_0
pytest-doctestplus 0.2.0 py37_0
pytest-openfiles 0.3.1 py37_0
pytest-remotedata 0.3.1 py37_0
Upvotes: 2