-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud_setup_tutorial
41 lines (31 loc) · 1.26 KB
/
cloud_setup_tutorial
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
# run this file by typing in the terminal:
# sed -i -e 's/\r\+$//' cloud_setup_tutorial
# source cloud_setup_tutorial
# update packages on the linux/ubuntu system
# sudo = gives admin privilages for the command
# apt = the name of the package manager for linux/ubuntu
# update = update the package
# -y = if the commands prompts for permissions, answer "yes"
sudo apt update -y
# install python3
sudo apt install python3 python3-dev python3-venv -y
# install the package wget so that you can easily download files from the web
sudo apt-get install wget -y
# download a few extra packages - this is optional -> sometimes some scientific python packages will necessitate to compile stuff and these packages will be useful
sudo apt-get install build-essential libssl-dev libffi-dev python-dev -y
# install pip --> python package manager
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
# create a folder
mkdir code
# move to that folder and make a results folder
cd code
mkdir results
# create a python3 virtual enviroment
python3 -m venv venv
# activate that virtual enviroment
source venv/bin/activate
# download a list of typical data science/scientific packages
pip install numpy
pip install pandas
pip install matplotlib