-
Notifications
You must be signed in to change notification settings - Fork 0
/
jupyter-python-setup.sh
67 lines (57 loc) · 1.36 KB
/
jupyter-python-setup.sh
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
56
57
58
59
60
61
62
63
64
65
66
67
# /bin/ash
# set shell env to execute...
# for debug change to -x to dryrun w/o execution change to -n
set -e
# confirm Alpin Linux 3.5
if [ -f /etc/alpine-release ]
then
if grep -q -i "3.5.0" /etc/alpine-release
then
echo "Alpine Linux 3.5.0 confirmed"
else
echo "Looks like Alpine Linux, but not the 3.5.0 version tested"
echo "Let's continue and see what happens..."
fi
else
echo "This does not appear to be Alpine Linux"
exit
fi
# uncomment community repo
sed -i '/3.5\/community/s/^#//g' /etc/apk/repositories
# refresh repositories
apk update
# install OS packages
apk add -u python \
python-dev \
py2-pip \
build-base \
gfortran \
lapack \
lapack-dev \
cmake \
freetype \
freetype-dev \
libxml2 \
libxml2-dev \
libxslt-dev \
libxslt
#linux-headers
# check for xlocale.h and if not exist create symlink to locale.h
if [ -f /usr/include/xlocale.h ]
then
echo "/usr/include/xlocale.h already exists"
else
ln -s /usr/include/locale.h /usr/include/xlocale.h
fi
# insall python apps and libraries
pip install --upgrade pip
pip install virtualenv
pip install pandas
pip install pandas-datareader
pip install matplotlib
pip install beautifulsoup4
pip install scipy
pip install lxml
pip install scikit-learn
pip install jupyter
#pip install jupyter_contrib_nbextensions