amir22010 commited on
Commit
2a0837f
·
1 Parent(s): b812bdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,4 +1,7 @@
1
  import os
 
 
 
2
  os.system('wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz')
3
  os.system('tar -xzf Python-3.9.7.tgz')
4
  os.chdir('Python-3.9.7')
@@ -6,7 +9,7 @@ os.system('pwd')
6
  os.system('./configure --enable-optimizations')
7
  os.system('make -j 2')
8
  os.system('nproc')
9
- os.system('make altinstall')
10
  os.system('python3.9 --version')
11
  os.system('cat /etc/os-release')
12
  os.system('python -m pip install --upgrade pip')
 
1
  import os
2
+ os.system('sudo su -')
3
+ os.system('apt update -y')
4
+ os.system('apt install sudo -y')
5
  os.system('wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz')
6
  os.system('tar -xzf Python-3.9.7.tgz')
7
  os.chdir('Python-3.9.7')
 
9
  os.system('./configure --enable-optimizations')
10
  os.system('make -j 2')
11
  os.system('nproc')
12
+ os.system('sudo make altinstall')
13
  os.system('python3.9 --version')
14
  os.system('cat /etc/os-release')
15
  os.system('python -m pip install --upgrade pip')