SWCAudioDaySoftware » History » Version 6
Luis Figueira, 2012-09-03 03:56 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 | 1 | Luis Figueira | ln -s /usr/local/Cellar/python/2.7.2/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 | 6 | Luis Figueira | h4. Scipy |
40 | 1 | Luis Figueira | |
41 | 6 | Luis Figueira | <pre> |
42 | 1 | Luis Figueira | brew install gfortran |
43 | 1 | Luis Figueira | pip install scipy |
44 | 6 | Luis Figueira | </pre> |
45 | 1 | Luis Figueira | |
46 | 6 | Luis Figueira | h5. Testing (in python) |
47 | 1 | Luis Figueira | |
48 | 6 | Luis Figueira | <pre> |
49 | 1 | Luis Figueira | import scipy |
50 | 1 | Luis Figueira | print scipy.__version__ |
51 | 1 | Luis Figueira | print scipy.__file__ |
52 | 1 | Luis Figueira | quit() |
53 | 6 | Luis Figueira | </pre> |
54 | 1 | Luis Figueira | |
55 | 1 | Luis Figueira | * Matplotlib |
56 | 1 | Luis Figueira | |
57 | 1 | Luis Figueira | (couldn't get matplotlib installed using pip; had to download and manually install it instead) |
58 | 1 | Luis Figueira | |
59 | 6 | Luis Figueira | <pre> |
60 | 1 | Luis Figueira | git clone https://github.com/matplotlib/matplotlib.git |
61 | 1 | Luis Figueira | cd matplotlib |
62 | 1 | Luis Figueira | python setup.py build |
63 | 1 | Luis Figueira | python setup.py install |
64 | 6 | Luis Figueira | </pre> |
65 | 1 | Luis Figueira | |
66 | 1 | Luis Figueira | * Audiolab |
67 | 1 | Luis Figueira | |
68 | 6 | Luis Figueira | <pre> |
69 | 1 | Luis Figueira | pip install scikits.audiolab |
70 | 6 | Luis Figueira | </pre> |