-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sh
executable file
·33 lines (27 loc) · 893 Bytes
/
script.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
#!/bin/sh
sudo yum -y update && sudo yum -y upgrade
sudo yum install -y git gcc
cd /tmp
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc
pyenv install anaconda3-4.3.0
pyenv rehash
pyenv global anaconda3-4.3.0
echo 'alias activate="source $PYENV_ROOT/versions/anaconda3-4.3.0/bin/activate"' >> ~/.bashrc
source ~/.bashrc
pip install numpy
pip install scipy
pip install pandas
pip install matplotlib
pip install ipython
pip install jupyter
pip install pillow
pip install chainer
pip install tensorflow
pip install keras
pip install scikit-learn
jupyter notebook --generate-config
echo -e "c.NotebookApp.ip ='*'\nc.NotebookApp.port = 8888\nc.NotebookApp.open_browser = False" >> ~/.jupyter/jupyter_notebook_config.py