Spaces:
Runtime error
Runtime error
Create install_requirements.py
Browse files- install_requirements.py +8 -0
install_requirements.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import subprocess
|
3 |
+
|
4 |
+
# Set the environment variable
|
5 |
+
os.environ["SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL"] = "True"
|
6 |
+
|
7 |
+
# Run pip install
|
8 |
+
subprocess.check_call(["pip", "install", "--no-cache-dir", "-r", "requirements.txt"])
|