-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_python1.sh
More file actions
70 lines (57 loc) · 1.71 KB
/
start_python1.sh
File metadata and controls
70 lines (57 loc) · 1.71 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
#!/bin/bash
# cd /sgoinfre/goinfre/Perso &&
# mkdir -p $USERNAME &&
# chmod 700 $USERNAME &&
# cd $USERNAME &&
# curl -o miniconda3.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh &&
# sh miniconda3.sh -b -p $pwd miniconda3 &&
# echo "" &&
# echo "à ajouter au .zshrc ou .bashrc: " &&
# echo "export PATH=\"/sgoinfre/goinfre/Perso/$USERNAME/miniconda3/bin:\$PATH\""
# source ~/.zshrc
# which python
# pip3 install --upgrade pip
# pip install jupyter
# pip install --upgrade numpy
# pip install keras tensorflow opencv-python
# Pour installer Python sur goinfre
# (il faudra le refaire sur chaque nouvelle machine, et a chque fois que goinfre est efface)
# use source, Luke!
# Python 3.7
VERSION=3
MINICONDA_PATH=/goinfre/miniconda3
SCRIPT=Miniconda3-latest-MacOSX-x86_64.sh
# 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
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
export PATH="$MINICONDA_PATH/bin:$PATH"
echo
echo Versions de Python et de pip:
which python
which pip
python -V
pip -V
echo
echo '-->' installer des modules avec pip...
#pip install -U django
pip install -U jupyter numpy pandas matplotlib
pip install -U scikit-learn seaborn
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 &