-
Notifications
You must be signed in to change notification settings - Fork 4
/
test_import.py
49 lines (40 loc) · 986 Bytes
/
test_import.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
import sys
if sys.version_info[0] < 3:
raise Exception("Must be using Python 3")
else:
print("Using python3")
try:
import numpy
print("module 'numpy' is installed")
except:
raise Exception("module 'numpy' is not installed")
try:
import scipy
print("module 'scipy' is installed")
except:
raise Exception("module 'scipy' is not installed")
try:
import gdist
print("module 'gdist' ('tvb-gdist') is installed")
except:
raise Exception("module 'gdist' ('tvb-gdist') is not installed")
try:
import mpmath
print("module 'mpmath' is installed")
except:
raise Exception("module 'mpmath' is not installed")
try:
import matplotlib
print("module 'matplotlib' is installed")
except:
raise Exception("module 'matplotlib' is not installed")
try:
import seaborn
print("module 'seaborn' is installed")
except:
raise Exception("module 'seaborn' is not installed")
try:
import vtk
print("module 'vtk' is installed")
except:
raise Exception("module 'vtk' is not installed")