| import os | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| abs_path = str(Path("urv").resolve()) | |
| print(f"Installing package from '{abs_path}' in editable mode...") | |
| try: | |
| # Run pip install -e <path> using the current python interpreter | |
| subprocess.check_call([sys.executable, "-m", "pip", "uninstall", "ultimate-rvc"]) | |
| subprocess.check_call([sys.executable, "-m", "pip", "install", "-e", abs_path]) | |
| os.system("python app2.py" | |
| print("✅ Package successfully installed in editable mode!") | |
| except subprocess.CalledProcessError as e: | |
| print(f"❌ Installation failed with exit code {e.returncode}") | |