kaifz commited on
Commit
f2b0577
·
1 Parent(s): f78a5ad
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -57,10 +57,10 @@ site.main() # re-processes every *.pth in site-packages
57
  importlib.invalidate_caches()
58
  diff_gaussian_rasterization = importlib.import_module("diff_gaussian_rasterization")
59
 
60
- os.system('pip install --no-deps dgl -f https://data.dgl.ai/wheels/torch-2.4/cu124/repo.html')
61
 
62
- os.system('pip uninstall torch torchvision torchaudio')
63
- os.system('pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu124')
64
  # os.system('conda install conda-forge::ffmpeg')
65
 
66
  site.main() # re-processes every *.pth in site-packages
 
57
  importlib.invalidate_caches()
58
  diff_gaussian_rasterization = importlib.import_module("diff_gaussian_rasterization")
59
 
60
+ subprocess.check_call([sys.executable, '-m', 'pip install --no-deps dgl -f https://data.dgl.ai/wheels/torch-2.4/cu124/repo.html'])
61
 
62
+ subprocess.check_call([sys.executable, '-m', 'pip uninstall torch torchvision torchaudio'])
63
+ subprocess.check_call([sys.executable, '-m', 'pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu124'])
64
  # os.system('conda install conda-forge::ffmpeg')
65
 
66
  site.main() # re-processes every *.pth in site-packages