Complete tutorial: Installing Wan2GP to run Wan Animate locally | Alpha | PandaiTech

Complete tutorial: Installing Wan2GP to run Wan Animate locally

A step-by-step guide to installing Wan2GP on Windows, including Git and Miniconda setup, and installing the necessary Python dependencies.

Learning Timeline
Key Insights

Python Version Tip

Avoid using Python 3.13 for AI projects for now. Many AI libraries like Torch are not yet fully stable on that version. Use 3.11 or 3.12 for the best stability.

Important Step: Environment Path

If the 'conda' command is not recognized, ensure you have manually added the /Scripts folder path to your System Environment Variables.

Pre-update Sequence

Always run 'conda activate Wan2GP' before executing 'pip install'. If you skip this step, libraries will be installed globally and could break your computer's original Python setup.
Step by Step

Steps to Install Git and Clone the Repository

  1. Visit the official Git website and download the '64-bit Git for Windows Setup' installer.
  2. Open the downloaded .exe file and click 'Next' on all default settings until the installation is complete.
  3. Go to your Desktop, right-click and select 'Open in Terminal' or type 'cmd' in the folder address bar.
  4. Type the command 'git clone https://github.com/GP-Unit/Wan2GP.git' (or the relevant repo link) to download the source code.
  5. Enter the project folder by typing 'cd Wan2GP' in the Command Prompt.

Setting Up the Virtual Environment with Miniconda

  1. Download Miniconda for Python 3.11 or 3.12 from repo.anaconda.com (avoid 3.13 due to AI model compatibility issues).
  2. Run the installer, select 'All Users', and check the 'Clear the package cache' option before clicking finish.
  3. Locate the 'Scripts' folder in your Miniconda installation directory (e.g., C:\ProgramData\miniconda3\Scripts).
  4. Copy the folder path using 'Copy as path'.
  5. Open 'Environment Variables' in Windows, find 'Path' under System Variables, click 'Edit', then 'New', and paste the path.
  6. Open a new Command Prompt and type 'conda --version' to verify the installation.
  7. Type 'conda create -n Wan2GP python=3.11' and press 'Y' to build a dedicated environment.

Installing Dependencies and Model Libraries

  1. Activate the environment by typing 'conda activate Wan2GP'.
  2. Ensure the environment name '(Wan2GP)' appears at the beginning of your prompt line.
  3. Install PyTorch and Torchvision using the command 'pip install torch torchvision torchaudio' (file size is ~3GB).
  4. Install the remaining required libraries by typing 'pip install -r requirements.txt'.
  5. If you are updating an older version, type 'git pull' before running 'pip install -r requirements.txt'.

More from Generate Commercial & Cinematic AI Video

View All