-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_python.sh
More file actions
91 lines (66 loc) · 3.72 KB
/
start_python.sh
File metadata and controls
91 lines (66 loc) · 3.72 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
VERSION=3
MINICONDA_PATH=~/goinfre/miniconda3
SCRIPT=Miniconda3-latest-MacOSX-x86_64.sh
export PATH="$MINICONDA_PATH/bin:$PATH"
echo
echo Current Versions of Python and pip:
which python
which pip
python -V
pip -V
echo
echo "install Python version $VERSION? (control-C to exit)"
read junk
# Pour installer Python sur goinfre
# (il faudra le refaire sur chaque nouvelle machine, et a chque fois que goinfre est efface)
# use source, Luke!
VERSION=3
MINICONDA_PATH=~/goinfre/miniconda3
SCRIPT=Miniconda3-latest-MacOSX-x86_64.sh
# pip3 install --upgrade pip
# Python 2.7
#VERSION=2
#MINICONDA_PATH=~/goinfre/miniconda
#SCRIPT=Miniconda2-latest-MacOSX-x86_64.sh
# pour faire une mise a jour au lieu d'une install from scratch:
#UPDATE=-u
#UPDATE_OP=mise a jour
export PATH="$MINICONDA_PATH/bin:$PATH"
echo
echo Current Versions of Python and pip:
which python
which pip
python -V
pip -V
echo
echo "install Python version $VERSION? (control-C to exit)"
read junk
echo
echo '-->' downloader intallateur Miniconda...
curl -LO http://repo.continuum.io/miniconda/$SCRIPT
echo
echo '-->'$UPDATE_OP installation de Python $VERSION
sh $SCRIPT $UPDATE -b -p $MINICONDA_PATH
rm $SCRIPT
echo
echo '-->' installer des modules avec pip...
# pip install -U django
pip install -U jupyter numpy pandas matplotlib
pip install -U scikit-learn seaborn spyder
#pip install keras tensorflow opencv-python glob3
# d'autres trucs utiles pour Kai et pour le ML
#alias ls='ls -F'
#export PS1='\w> '
#cd /sgoinfre/goinfre/Perso/rcarver/
echo 'start Jupyter? (control-C to exit)'
read junk
jupyter notebook &
curl -LO http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
sh $SCRIPT -b -p $MINICONDA_PATH
rm $SCRIPT
export PATH="$MINICONDA_PATH/bin:$PATH"
pip install jupyter numpy pandas matplotlib
clear
echo "Which python:"
which python