forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
print_versions.py
executable file
·97 lines (81 loc) · 1.89 KB
/
print_versions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env python
import sys
print("\nINSTALLED VERSIONS")
print("------------------")
print("Python: %d.%d.%d.%s.%s" % sys.version_info[:])
try:
import Cython
print("Cython: %s" % Cython.__version__)
except:
print("Cython: Not installed")
try:
import numpy
print("Numpy: %s" % numpy.version.version)
except:
print("Numpy: Not installed")
try:
import scipy
print("Scipy: %s" % scipy.version.version)
except:
print("Scipy: Not installed")
try:
import statsmodels
print("statsmodels: %s" % statsmodels.__version__)
except:
print("statsmodels: Not installed")
try:
import patsy
print(" patsy: %s" % patsy.__version__)
except:
print(" patsy: Not installed")
try:
import scikits.timeseries as ts
print("scikits.timeseries: %s" % ts.__version__)
except:
print("scikits.timeseries: Not installed")
try:
import dateutil
print("dateutil: %s" % dateutil.__version__)
except:
print("dateutil: Not installed")
try:
import pytz
print("pytz: %s" % pytz.VERSION)
except:
print("pytz: Not installed")
try:
import tables
print("PyTables: %s" % tables.__version__)
except:
print("PyTables: Not Installed")
try:
import numexpr
print(" numexpr: %s" % numexpr.__version__)
except:
print(" numexpr: Not Installed")
try:
import matplotlib
print("matplotlib: %s" % matplotlib.__version__)
except:
print("matplotlib: Not installed")
try:
import openpyxl
print("openpyxl: %s" % openpyxl.__version__)
except:
print("openpyxl: Not installed")
try:
import xlrd
print("xlrd: %s" % xlrd.__VERSION__)
except:
print("xlrd: Not installed")
try:
import xlwt
print("xlwt: %s" % xlwt.__VERSION__)
except:
print("xlwt: Not installed")
try:
import sqlalchemy
print("sqlalchemy: %s" % sqlalchemy.__version__)
except:
print("sqlalchemy: Not installed")
print("\n")