-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintroduction.py
More file actions
34 lines (31 loc) · 1.05 KB
/
introduction.py
File metadata and controls
34 lines (31 loc) · 1.05 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
# install python3
#ubuntu has python already pre-installed
#we need to update and upgrade the python version
#sudo apt-get update
#sudo apt-get -y upgrade (-y switch/flag means all items)
#check version
#python3 -v
#install pip (is a python tool used to install and manage python packages)
#sudo apt-get install -y python3 pip
#download packages using pip
#pip3 install Numpy (pip3 install package_name)
#install all the dev tools and packages
#sudo apt-get install build-essential libssl-dev libffl-dev python-dev
#install virtual environment usin venv module
#sudo apt-get install python3-venv
#create a directory for your projects
#mkdir projects
#create a venv inside the directory
#python3 -m venv my_env
#activate the env
#source my_env/bin/activate
#wollalalh you're ready to create projects.
#use can use pip and python instead of pip3 and pyhton3 in your enve
#will on your enviriment you can open a text editor
#nano hello.py
#write your code
#ctr+x to exit and y to save changes
#run your program
#python hello.py
#to leave the environment
#type deactivate