-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtest_installation.py
55 lines (44 loc) · 1.29 KB
/
test_installation.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
"""
A script that imports all of the modules we will need. If this script says you don't have something, you will need to install it using the given command.
"""
try:
import numpy
except:
print("Numpy was not found.")
print("Install it by doing: python -m pip install numpy ")
try:
import matplotlib
except:
print("Matplotlib not found, please run:")
print("python -m pip install matplotlib")
try:
import jupyter
except:
print("jupyter not found, please run:")
print("python -m pip install jupyter")
try:
import scipy
except:
print("scipy not found, please run:")
print("python -m pip install scipy")
try:
import skimage
except:
print("scikit image not found, please run:")
print("python -m pip install scikit-image")
try:
import pydicom
except:
print("pydicom not found, please run:")
print("python -m pip install pydicom")
## below here, optional stuff that will only be used in the extensions
try:
import pyaudio
except:
print("pyaudio was not found, if you plan to work on the extension tasks, run this:")
print("python -m pip install pyaudio wave")
try:
import colorama
except:
print("colorama was not found, if you plan to work on the extension tasks, run this:")
print("python -m pip install colorama")