SWCAudioDaySoftware » History » Version 8
Luis Figueira, 2012-09-05 12:50 PM
1 | 1 | Luis Figueira | h1. SWCAudioDaySoftware |
---|---|---|---|
2 | 1 | Luis Figueira | |
3 | 1 | Luis Figueira | |
4 | 2 | Luis Figueira | h3. Installation under OSX 10.7 (Lion) |
5 | 1 | Luis Figueira | |
6 | 2 | Luis Figueira | (assuming homebrew is already installed) |
7 | 1 | Luis Figueira | |
8 | 3 | Luis Figueira | <pre>brew install readline sqlite gdbm pkg-config |
9 | 2 | Luis Figueira | brew install python --framework --universal</pre> |
10 | 1 | Luis Figueira | |
11 | 1 | Luis Figueira | (add this to ~/.bash_profile) |
12 | 5 | Luis Figueira | @export PATH=/usr/local/share/python:$PATH@ |
13 | 6 | Luis Figueira | |
14 | 4 | Luis Figueira | <pre> |
15 | 1 | Luis Figueira | cd /System/Library/Frameworks/Python.framework/Versions |
16 | 1 | Luis Figueira | sudo rm Current |
17 | 8 | Luis Figueira | ln -s /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/Current |
18 | 1 | Luis Figueira | |
19 | 1 | Luis Figueira | source ~/.bash_profile (or reload terminal) |
20 | 1 | Luis Figueira | |
21 | 1 | Luis Figueira | easy_install pip |
22 | 1 | Luis Figueira | </pre> |
23 | 6 | Luis Figueira | |
24 | 6 | Luis Figueira | h4. Numpy |
25 | 6 | Luis Figueira | |
26 | 1 | Luis Figueira | <pre> |
27 | 3 | Luis Figueira | pip install numpy |
28 | 1 | Luis Figueira | </pre> |
29 | 1 | Luis Figueira | |
30 | 6 | Luis Figueira | h5. Testing (in python) |
31 | 6 | Luis Figueira | |
32 | 6 | Luis Figueira | <pre> |
33 | 1 | Luis Figueira | import numpy |
34 | 1 | Luis Figueira | print numpy.__version__ |
35 | 1 | Luis Figueira | print numpy.__file__ |
36 | 1 | Luis Figueira | quit() |
37 | 6 | Luis Figueira | </pre> |
38 | 1 | Luis Figueira | |
39 | 7 | Luis Figueira | You should get numpy version 1.6.2 and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@ |
40 | 7 | Luis Figueira | |
41 | 6 | Luis Figueira | h4. Scipy |
42 | 1 | Luis Figueira | |
43 | 6 | Luis Figueira | <pre> |
44 | 1 | Luis Figueira | brew install gfortran |
45 | 1 | Luis Figueira | pip install scipy |
46 | 6 | Luis Figueira | </pre> |
47 | 1 | Luis Figueira | |
48 | 6 | Luis Figueira | h5. Testing (in python) |
49 | 1 | Luis Figueira | |
50 | 6 | Luis Figueira | <pre> |
51 | 1 | Luis Figueira | import scipy |
52 | 1 | Luis Figueira | print scipy.__version__ |
53 | 1 | Luis Figueira | print scipy.__file__ |
54 | 1 | Luis Figueira | quit() |
55 | 1 | Luis Figueira | </pre> |
56 | 1 | Luis Figueira | |
57 | 7 | Luis Figueira | You should get scipy version 0.10.1 and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@ |
58 | 1 | Luis Figueira | |
59 | 7 | Luis Figueira | h4. Matplotlib |
60 | 7 | Luis Figueira | |
61 | 1 | Luis Figueira | (couldn't get matplotlib installed using pip; had to download and manually install it instead) |
62 | 1 | Luis Figueira | |
63 | 6 | Luis Figueira | <pre> |
64 | 1 | Luis Figueira | git clone https://github.com/matplotlib/matplotlib.git |
65 | 1 | Luis Figueira | cd matplotlib |
66 | 1 | Luis Figueira | python setup.py build |
67 | 6 | Luis Figueira | python setup.py install |
68 | 1 | Luis Figueira | </pre> |
69 | 1 | Luis Figueira | |
70 | 7 | Luis Figueira | h5. Testing (in Python) |
71 | 1 | Luis Figueira | |
72 | 1 | Luis Figueira | <pre> |
73 | 7 | Luis Figueira | import matplotlib |
74 | 7 | Luis Figueira | print matplotlib.__version__ |
75 | 7 | Luis Figueira | print matplotlib.__file__ |
76 | 7 | Luis Figueira | quit() |
77 | 7 | Luis Figueira | </pre> |
78 | 7 | Luis Figueira | |
79 | 7 | Luis Figueira | You should get matplotlib version 1.2.x and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@ |
80 | 7 | Luis Figueira | |
81 | 7 | Luis Figueira | h4. Audiolab |
82 | 7 | Luis Figueira | |
83 | 7 | Luis Figueira | <pre> |
84 | 1 | Luis Figueira | pip install scikits.audiolab |
85 | 1 | Luis Figueira | </pre> |
86 | 7 | Luis Figueira | |
87 | 7 | Luis Figueira | h5. Testing (in Python) |
88 | 7 | Luis Figueira | |
89 | 7 | Luis Figueira | <pre> |
90 | 7 | Luis Figueira | import scikits.audiolab |
91 | 7 | Luis Figueira | print scikits.audiolab.__version__ |
92 | 7 | Luis Figueira | print scikits.audiolab.__file__ |
93 | 7 | Luis Figueira | quit() |
94 | 7 | Luis Figueira | </pre> |
95 | 7 | Luis Figueira | |
96 | 7 | Luis Figueira | You should get scikits.audiolab version 0.11.0 and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@ |