BaSs_HaXoR

how to: anaconda autorun environment bat script

Nov 18th, 2025 (edited)
935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.56 KB | None | 0 0
  1. //install anaconda mini: https://www.anaconda.com/docs/getting-started/miniconda/install#quickstart-install-instructions
  2.  
  3. @echo off
  4. REM Open Anaconda terminal in yolo_env2 and cd to YOLO directory
  5.  
  6. REM Use conda's "activate" script
  7. CALL C:\ProgramData\anaconda3\Scripts\activate.bat C:\ProgramData\anaconda3
  8.  
  9. REM Activate your environment
  10. CALL conda activate yolo
  11.  
  12. REM Change directory to YOLO folder
  13. cd /d "C:\Users\user\Desktop\yolo"
  14.  
  15. REM Show nvidia infos on load (to verify everything is good for GPU)
  16. nvidia-smi
  17.  
  18. REM Keep the terminal open
  19. cmd /K
  20.  
Advertisement