Hyeonseo's picture
Update env_set.py
b769043
raw
history blame
871 Bytes
import subprocess
import os
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)
print("TAR")
subprocess.run(f"tar -xf node-v17.0.1-linux-x64.tar.xz", shell=True)
print("MV")
subprocess.run(f"mv node-v17.0.1-linux-x64 node", shell=True)
print("ν™˜κ²½λ³€μˆ˜")
pwd = os.getcwd()
subprocess.run(f"export PATH={pwd}/node/bin:$PATH", shell=True)
print("npm μ—…κ·Έλ ˆμ΄λ“œ")
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)