|
1 | 1 | import os
|
2 | 2 | import sys
|
3 | 3 |
|
| 4 | + |
4 | 5 | def show_versions():
|
5 | 6 | print("\nINSTALLED VERSIONS")
|
6 | 7 | print("------------------")
|
7 | 8 | print("Python: %d.%d.%d.%s.%s" % sys.version_info[:])
|
| 9 | + |
8 | 10 | try:
|
9 |
| - (sysname, nodename, release, version, machine) = os.uname() |
10 |
| - print("OS: %s %s %s %s" % (sysname, release, version,machine)) |
| 11 | + sysname, nodename, release, version, machine = os.uname() |
| 12 | + print("OS: %s %s %s %s" % (sysname, release, version, machine)) |
11 | 13 | print("byteorder: %s" % sys.byteorder)
|
12 |
| - print("LC_ALL: %s" % os.environ.get('LC_ALL',"None")) |
13 |
| - print("LANG: %s" % os.environ.get('LANG',"None")) |
| 14 | + print("LC_ALL: %s" % os.environ.get('LC_ALL', "None")) |
| 15 | + print("LANG: %s" % os.environ.get('LANG', "None")) |
14 | 16 | except:
|
15 | 17 | pass
|
16 | 18 |
|
17 | 19 | print("")
|
| 20 | + |
| 21 | + try: |
| 22 | + import pandas |
| 23 | + print("pandas: %s" % pandas.__version__) |
| 24 | + except: |
| 25 | + print("pandas: Not installed") |
| 26 | + |
18 | 27 | try:
|
19 | 28 | import Cython
|
20 | 29 | print("Cython: %s" % Cython.__version__)
|
@@ -129,7 +138,7 @@ def show_versions():
|
129 | 138 | except:
|
130 | 139 | print("html5lib: Not installed")
|
131 | 140 |
|
132 |
| - print("\n") |
| 141 | + |
133 | 142 |
|
134 | 143 | if __name__ == "__main__":
|
135 | 144 | show_versions()
|
0 commit comments