-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-resource.sh
More file actions
31 lines (24 loc) · 845 Bytes
/
Copy pathpython-resource.sh
File metadata and controls
31 lines (24 loc) · 845 Bytes
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
#PY ON LINUX
#INSTALLING PY
wget https://www.python.org/ftp/python/3.8.16/Python-3.8.16.tgz
# For apt-based systems (like Debian, Ubuntu, and Mint)
sudo apt install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncurses5-dev libncursesw5-dev xz-utils tk-dev -y
# For yum-based systems (like CentOS)
sudo yum -y groupinstall "Development Tools"
sudo yum -y install gcc openssl-devel bzip2-devel libffi-devel
tar -cf
tar -tvf
tar -xf
tar -xvf
tar xvf Python-3.8.16.tgz
cd Python-3.8.16
./configure --enable-optimizations --with-ensurepip=install
make -j 8
sudo make altinstall
sudo yum install python2/python3 -y
sudo yum install python-pip
sudo apt install python2/python3 -y
sudo apt install python3-pip -y
https://www.w3schools.com/python/python_ref_functions.asp