Spaces:
Sleeping
Sleeping
Download python_backend/debug_env.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/debug_env.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/python_backend/debug_env.py
-
curl -L -o debug_env.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/debug_env.py
512 Bytes
| import sys | |
| import os | |
| print(f"Python executable: {sys.executable}") | |
| print(f"Working directory: {os.getcwd()}") | |
| print("Python path:") | |
| for p in sys.path: | |
| print(f" {p}") | |
| try: | |
| import fastapi | |
| print(f"fastapi version: {fastapi.__version__}") | |
| print(f"fastapi path: {fastapi.__file__}") | |
| except ImportError as e: | |
| print(f"fastapi NOT found: {e}") | |
| try: | |
| from src import constants | |
| print("src.constants imported successfully") | |
| except ImportError as e: | |
| print(f"src.constants NOT found: {e}") | |