Spaces:
No application file
No application file
Download src/common/shared/deps.py from metasoccer/collab: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/spaces/metasoccer/collab/resolve/main/src/common/shared/deps.py
- Command line
-
hf download hf://spaces/metasoccer/collab/src/common/shared/deps.py
-
curl -L -o deps.py https://huggingface.co/spaces/metasoccer/collab/resolve/main/src/common/shared/deps.py
459 Bytes
| import sys | |
| import subprocess | |
| def install(package): | |
| subprocess.check_call([sys.executable, "-m", "pip", "install", package]) | |
| # List of packages to be installed | |
| required_packages = [ | |
| "boto3", | |
| "eth_abi", | |
| "itables", | |
| "matplotlib", | |
| "mercury", | |
| "nbformat", | |
| "pandas", | |
| "plotly", | |
| "sqlalchemy", | |
| "web3" | |
| ] | |
| for package in required_packages: | |
| try: | |
| __import__(package) | |
| except ImportError: | |
| install(package) | |