Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out what distribution of Python I'm using?

Tags:

python

I'm not just looking for the version but specifically the distribution, i.e. whether it's Anaconda, Python(x,y), etc.

like image 559
jss367 Avatar asked Sep 18 '25 13:09

jss367


1 Answers

Open a terminal (or command line on Windows) and type python --version or python -V (capital "V" for the second one). For instance, on my Windows machine this returns:

Python 3.4.4 :: Anaconda 4.0.0 (64-bit)

Unless I'm in my Python 2.7 virtual env, in which case it returns:

Python 2.7.11 :: Anaconda 4.0.0 (64-bit)

which python tells you where the binary is located, but often does not give you much of an idea about which version it is (although if it's in an anaconda folder, you know it's anaconda, and that sort of thing).

like image 143
Engineero Avatar answered Sep 21 '25 05:09

Engineero