2
2
mkdir tmp
3
3
cd tmp
4
4
echo " Downloading Python 3"
5
- curl http://www.python.org/ftp/python/3.3.5 /python-3.3.5 -macosx10.6.dmg > python-3.3.5 -macosx10.6.dmg
5
+ curl http://www.python.org/ftp/python/3.4.1 /python-3.4.1 -macosx10.6.dmg > python-3.4.1 -macosx10.6.dmg
6
6
7
7
8
8
sleep 1
9
- hdiutil attach python-3.3.5 -macosx10.6.dmg
9
+ hdiutil attach python-3.4.1 -macosx10.6.dmg
10
10
sleep 2
11
11
12
- cd /Volumes/Python\ 3.3.5
12
+ cd /Volumes/Python\ 3.4.1
13
13
echo " The installer will query for your password in order to install Python 3 on your system"
14
14
sudo installer -pkg Python.mpkg -target /
15
15
cd -
@@ -23,28 +23,32 @@ python3 setup.py install
23
23
24
24
echo " Downloading and installing iPython 3 and dependencies"
25
25
cd ..
26
- /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 ipython
27
- /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 readline
28
- /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 tornado
29
- /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 pyzmq
30
- /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 jinja2
31
- /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 numpy
32
- /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 scipy
33
- /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 matplotlib
26
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 ipython
27
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 readline
28
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 tornado
29
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 pyzmq
30
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 jinja2
31
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 numpy
32
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 scipy
33
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 matplotlib
34
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 seaborn
35
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 pandas
36
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 flask
37
+ /Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 whoosh
34
38
cd ..
35
39
# echo "export PATH=\"/Library/Frameworks/Python.framework/Versions/3.3/bin/:\$PATH\"" >> ~/.bash_profile
36
40
37
41
echo -n " Do you want the installer to add Python 3 to your default path in your ~/.profile? (y/n)"
38
42
read yn
39
43
yn=" $( tr [A-Z] [a-z] <<< " $yn" ) "
40
44
if [ " $yn " == " y" ]; then
41
- echo " export PATH=\" /Library/Frameworks/Python.framework/Versions/3.3 /bin/:\$ PATH\" " >> ~ /.profile
45
+ echo " export PATH=\" /Library/Frameworks/Python.framework/Versions/3.4 /bin/:\$ PATH\" " >> ~ /.profile
42
46
else
43
- echo " Python should now be installed in /Library/Frameworks/Python.framework/Versions/3.3 /bin/"
47
+ echo " Python should now be installed in /Library/Frameworks/Python.framework/Versions/3.4 /bin/"
44
48
fi
45
49
46
50
curl https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/toc.js > $( ipython locate) /nbextensions/toc.js
47
51
curl https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/toc.css > $( ipython locate) /nbextensions/toc.css
48
52
echo " IPython.load_extensions('toc');" >> $( ipython locate profile) /static/custom/custom.js
49
53
50
- export PATH=" /Library/Frameworks/Python.framework/Versions/3.3 /bin/:$PATH "
54
+ export PATH=" /Library/Frameworks/Python.framework/Versions/3.4 /bin/:$PATH "
0 commit comments