Checking ipython library version from terminal?

I use iPython from the Anaconda distribution, and I want to know how to check the version of some libraries from Terminal (using Mac), for example scikit_learn, but I don’t know the commands ...

can anyone advise? Thanks!

+4
source share
1 answer

Using anaconda, you can find version information with the following command:

conda list <package name>

eg:

conda list scipy

will return (on my system, from my default environment)

# packages in environment at /Users/reblochonmasque/anaconda3:
#
scipy                     0.15.1               np19py34_0 

for your specific question, use:

conda list scikit-learn

To find out which versions are available for your system, use:

conda info scikit-learn

if you find that you need to update the library, update conda first

conda update conda

anaconda (, )

conda update anaconda

( , , )

conda update -n <environment name> scikit_learn

: ,

conda list -r scikit-learn

, ( , ):

conda install --revision=4 scikit-learn 
+3

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


All Articles