Spaces:
Runtime error
Runtime error
Update env_set.py
Browse files- env_set.py +4 -1
env_set.py
CHANGED
@@ -2,7 +2,10 @@ import subprocess
|
|
2 |
|
3 |
def env_set():
|
4 |
subprocess.run(f"pip install PyPDF2", shell=True)
|
5 |
-
subprocess.run(f"
|
|
|
|
|
|
|
6 |
subprocess.run(f"apt-get install -f", shell=True)
|
7 |
subprocess.run(f"apt-get install -y fonts-nanum", shell=True)
|
8 |
subprocess.run(f"fc-cache -fv", shell=True)
|
|
|
2 |
|
3 |
def env_set():
|
4 |
subprocess.run(f"pip install PyPDF2", shell=True)
|
5 |
+
subprocess.run(f"wget https://nodejs.org/dist/v17.0.1/node-v17.0.1-linux-x64.tar.xz", shell=True)
|
6 |
+
subprocess.run(f"tar -xf node-v17.0.1-linux-x64.tar.xz", shell=True)
|
7 |
+
subprocess.run(f"wmv node-v17.0.1-linux-x64 node", shell=True)
|
8 |
+
subprocess.run(f"export PATH=$PWD/node/bin:$PATH", shell=True)
|
9 |
subprocess.run(f"apt-get install -f", shell=True)
|
10 |
subprocess.run(f"apt-get install -y fonts-nanum", shell=True)
|
11 |
subprocess.run(f"fc-cache -fv", shell=True)
|