How to list package versions using conda

Is there any way to see which versions of packages are available in conda? I get an error with jupyter, but it worked before. Something like yolk?

+5
source share
3 answers

You can simply enter "conda search", which will give you something like the following.

$ conda search Fetching package metadata ......... affine 2.0.0 py27_0 defaults 2.0.0 py35_0 defaults 2.0.0 py36_0 defaults alabaster 0.7.3 py27_0 defaults 0.7.3 py34_0 defaults 0.7.7 py27_0 defaults 0.7.7 py34_0 defaults 0.7.7 py35_0 defaults 0.7.9 py27_0 defaults 
+4
source

Despite the fact that this question has already been answered, for all who dare to look for an answer here, like me, conda search returns too much data, since it shows all available versions for all packages.

To find a specific package, use: conda search -f <package_name> . For example, based on a question, to find all versions for the jupyter package, you would run: conda search -f jupyter . This will return only package information named "jupyter".

Source: https://conda.io/docs/commands/conda-search.html

+6
source

As an add-on, you can use the conda search output to fine tune the version of the installed package. For instance. in the list from 'nasica88', there are three versions 0.7.7 albaster available with different versions of python. If you need, for example, albaster 0.7.7 using python 3.4, you install it like this:

 $> conda install albaster=0.7.7=py34_0 

So, the second sign = is your friend here.

0
source

Source: https://habr.com/ru/post/1266339/


All Articles