File size: 746 Bytes
0259f08
 
 
a89f4ff
e1cee17
4f5afe7
 
b5b5601
4f5afe7
dcc29e4
 
 
 
 
0259f08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import subprocess

def env_set():
    subprocess.run(f"pip install PyPDF2", shell=True)
    subprocess.run(f"pip install -q openai", shell=True)
    subprocess.run(f"wget https://nodejs.org/dist/v17.0.1/node-v17.0.1-linux-x64.tar.xz", shell=True)
    subprocess.run(f"tar -xf node-v17.0.1-linux-x64.tar.xz", shell=True)
    subprocess.run(f"mv node-v17.0.1-linux-x64 node", shell=True)
    subprocess.run(f"export PATH=$PWD/node/bin:$PATH", shell=True)
    subprocess.run(f"npm install -g npm", shell=True)
    # subprocess.run(f"apt-get install -f", shell=True)
    # subprocess.run(f"apt-get install -y fonts-nanum", shell=True)
    # subprocess.run(f"fc-cache -fv", shell=True)
    # subprocess.run(f"rm ~/.cache/matplotlib -rf", shell=True)