How to list package versions available with conda

梦想的初衷 提交于 2019-12-04 14:57:28

问题


IS there a way to see what package versions are available with conda? I am getting an error with jupyter but it was working before. Something like yolk?


回答1:


You can just type "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



回答2:


Although the question has already been answered, for anyone else who ventures here looking for an answer like I did, conda search returns too much data as it shows all available versions for all packages.

To search for a specific package, use: conda search -f <package_name>. For example, based on the question, to search all versions for "jupyter" package, you'll do: conda search -f jupyter. This will only return information about packages named "jupyter" exactly.

Source: https://docs.conda.io/projects/conda/en/latest/commands/search.html




回答3:


As an addendum, you can use the output of conda search to fine-tune the version of the package you need installed. E.g. in the list from the 'nasica88', there are three albaster 0.7.7 versions available with with different python versions. If you require e.g. albaster 0.7.7 with python 3.4, you install it as following:

$> conda install albaster=0.7.7=py34_0

So, the second = sign is your friend here.




回答4:


To list packages that are installed on your anaconda machine

conda list

This is to list all packages available for anaconda

conda search


来源:https://stackoverflow.com/questions/43222407/how-to-list-package-versions-available-with-conda

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!