Jellybit

Installation of Python and Dependencies.md

Nov 9th, 2025
144
0
Never
9
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.56 KB | Software | 0 0
  1. Here is a comprehensive, step-by-step installation guide created by synthesizing the official Patreon post (`Installation.md`) and the detailed transcript (`Installation Transcript using Old Versions.md`).
  2.  
  3. This guide provides the _what_ from the new post and the _how-and-why_ from the old transcript, giving you a complete and robust process.
  4.  
  5. ---
  6.  
  7. ## AI/ML Environment Setup Guide for Windows
  8.  
  9. This guide details the proper installation and configuration of all necessary components for a stable AI development environment on Windows, based on the latest recommended versions.
  10.  
  11. **Installation Order:** The recommended installation order is:
  12.  
  13. 1. Visual Studio Build Tools
  14. 2. Visual Studio Community Edition
  15. 3. CUDA
  16. 4. cuDNN
  17. 5. TensorRT
  18. 6. Python
  19. 7. FFmpeg, Git, and other tools
  20. 8. System Configuration
  21.  
  22.  
  23. ---
  24.  
  25. ### 1. Visual Studio Build Tools
  26.  
  27. This component is required for compiling Python libraries (wheels) on your local machine.
  28.  
  29. 1. **Download:** Use the official "v14 latest" link for version 17.14.13: [vs_BuildTools.exe Download](https://download.visualstudio.microsoft.com/download/pr/89ee1303-1ba2-4f66-b07c-5099983fd1e4/a5fcbc55bd633d6c79c9319317a8cb77c70227ce87b70948c27649f7384c2909/vs_BuildTools.exe).
  30.  
  31. 2. **Install:** Run the installer.
  32.  
  33. 3. **Select Workload:** In the installer, check the box for **"Desktop development with C++"**.
  34.  
  35. 4. **Components:** On the right-hand panel, ensure all components are selected, including the Windows SDKs.
  36.  
  37. 5. Complete the installation.
  38.  
  39.  
  40. ### 2. Visual Studio Community Edition
  41.  
  42. This provides the MSVC compiler tools, which are also required by some libraries.
  43.  
  44. 1. **Download:** Get the "Community" edition from the official page: [Visual Studio Downloads](https://visualstudio.microsoft.com/downloads/).
  45. 2. **Install:** Run the installer and select the same **"Desktop development with C++"** workload.
  46. 3. **Components:** Select all components _except_ "Incredibuild - Build Acceleration".
  47. 4. **Add to PATH (Critical):** After installation, you must manually add the compiler to your system's Environment Variables.
  48.  
  49. - Find the cl.exe path. It will be similar to:
  50. C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64
  51. - Open "Edit the system environment variables".
  52. - Click "Environment Variables...".
  53. - Under "System variables," find and "Edit..." the **`Path`** variable.
  54. - Click "New" and paste the full path you found above.
  55. - Click OK on all windows.
  56.  
  57. 1. **Verification:** Open a **new** PowerShell (not CMD) window and type `cl`. You should see the "Microsoft (R) C/C++ Optimizing Compiler" message, not an error.
  58.  
  59. ### 3. CUDA Installation
  60.  
  61. This is the core NVIDIA toolkit for GPU operations. We will install version 12.9.1.
  62.  
  63. 1. **Download:** [CUDA 12.9.1 Download (Windows)](https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda_12.9.1_576.57_windows.exe).
  64. 2. **Install:** Run the executable.
  65. 3. **Select Options:**
  66. - Agree and Continue.
  67. - Choose **Custom (Advanced)** installation.
  68. - **Uncheck** components you do not need, such as "GeForce Experience". Ensure "CUDA" and "Driver components" are selected.
  69. 4. **Paths:** Let it install to the default `C:\Program Files\...` locations.
  70. 5. **Restart:** Restart your PC after installation.
  71. 6. **Verification:** Open a **new** CMD window and type `nvcc --version`. You must see the 12.9.1 version listed. If you see an error, it means the `PATH` variables were not set correctly.
  72.  
  73.  
  74. ### 4. cuDNN Installation
  75.  
  76. This library accelerates deep neural network operations and is critical for performance.
  77.  
  78. 1. **Download:** Get the cuDNN 9.12.0 for CUDA 12.9 zip file.
  79. - Hugging Face (Backup): [cudnn_9.12_cuda_12.9.zip](https://huggingface.co/MonsterMMORPG/Wan_GGUF/resolve/main/cudnn_9.12_cuda_12.9.zip)
  80. - Official Archive (Requires login): [NVIDIA cuDNN Archive](https://developer.nvidia.com/cudnn-archive)
  81. 2. **Install:** This is a **manual** process.
  82. - The `Installation.md` document implies an installer that places files in `C:\Program Files\NVIDIA\CUDNN`. If you download the zip, you must extract it.
  83. - Extract the contents of the zip file.
  84. - Copy the extracted `v9.12` folder into `C:\Program Files\NVIDIA\CUDNN\` (you may need to create the `CUDNN` folder). Your final structure should look like `C:\Program Files\NVIDIA\CUDNN\v9.12`.
  85. 3. **Add to PATH:** You must add two paths to your System `Path` variable:
  86. - `C:\Program Files\NVIDIA\CUDNN\v9.12\bin\12.9`
  87. - `C:\Program Files\NVIDIA\CUDNN\v9.12`
  88. 4. **Add CUDNN_PATH:** You must also create a _new_ System Variable.
  89. - **Variable name:** `CUDNN_PATH`
  90. - **Variable value:** `C:\Program Files\NVIDIA\CUDNN\v9.12\bin\12.9`
  91.  
  92. ### 5. TensorRT Installation
  93.  
  94. This library optimizes models for inference speed.
  95.  
  96. 1. **Download:** Get the TensorRT 10.13.2 zip file for CUDA 12.9.
  97. - Hugging Face (Backup): [TensorRT-10.13.2.6...zip](https://huggingface.co/MonsterMMORPG/Wan_GGUF/resolve/main/TensorRT-10.13.2.6.Windows.win10.cuda-12.9.zip?download=true)
  98. 2. **Install:** This is also a manual extraction.
  99. - Extract the zip file directly to your C drive, resulting in a path like `C:\TensorRT_10_13_2_6`.
  100. 3. **Add to PATH:** Add the following two paths to your System `Path` variable:
  101. - `C:\TensorRT_10_13_2_6\lib`
  102. - `C:\TensorRT_10_13_2_6`
  103.  
  104. ### 6. Python Installation
  105.  
  106. We will install Python 3.10.11 as the default, as it is the most widely supported version.
  107.  
  108. 1. **Download:** [Python 3.10.11 64-bit Installer](https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe).
  109. 2. **Install:** Run the installer.
  110. 3. **Critical Setup Steps:**
  111. - Check the box **"Add Python.exe to PATH"**.
  112. - Select **"Customize installation"**.
  113. - On the next screen, check all "Optional Features" boxes.
  114. - On the "Advanced Options" screen, check all boxes (especially "py launcher").
  115. - **Change the install location** to a simple path, like `C:\Python310`.
  116. 4. **Final Step:** After installation, a "Setup was successful" screen will appear. Click the button that says **"Disable path length limit"**. This is very important.
  117. 5. **Verification:** Open a **new** CMD window and type `python --version`. You should see "Python 3.10.11".
  118.  
  119. > **Note on Other Versions:** Some applications may require other Python versions like 3.11.9 or 3.12.10. The provided 1-click installers are designed to automatically create virtual environments (venvs) with the correct Python version if they detect it's installed on your system. For now, only 3.10.11 is required.
  120.  
  121. ### 7. Other Essential Tools
  122.  
  123. #### FFmpeg
  124.  
  125. Used for video processing in many AI applications.
  126.  
  127. 1. **Download:** Use the specific linked version: [ffmpeg...win64-gpl.zip](https://huggingface.co/MonsterMMORPG/Wan_GGUF/resolve/main/ffmpeg-N-121105-ga0936b9769-win64-gpl.zip).
  128. 2. **Install:**
  129. - Create a new folder: `C:\ffmpeg_latest`.
  130. - Extract the zip file.
  131. - Go into the extracted folder, find the `bin` directory.
  132. - Copy the contents of the `bin` directory (e.g., `ffmpeg.exe`, `ffprobe.exe`) and paste them directly into your `C:\ffmpeg_latest` folder.
  133. 3. **Add to PATH:** Add `C:\ffmpeg_latest` to your System `Path` variable.
  134. 4. **Verification:** Open a **new** CMD window and type `ffmpeg`. You should see the FFmpeg version information.
  135.  
  136. #### Git
  137.  
  138. Used for cloning (downloading) code from repositories.
  139.  
  140. 1. **Download:** [Git for Windows](https://git-scm.com/downloads).
  141. 2. **Install:** Run the installer. Click "Next" on all prompts, accepting all default settings.
  142. 3. **Add to PATH (Manual):** The installer should do this, but it often fails. Manually add these two paths to your System `Path` variable to prevent errors:
  143. - `C:\Program Files\Git\cmd`
  144. - `C:\Program Files\Git\bin`
  145. 4. **Verification:** Open a **new** CMD window and type `git`. You should see the Git help message.
  146.  
  147. #### NodeJS
  148.  
  149. Required by some applications.
  150.  
  151. 1. **Download:** [NodeJS 22.20 (LTS)](https://nodejs.org/dist/v22.20.0/node-v22.20.0-x64.msi).
  152. 2. **Install:** Run the installer and accept all defaults.
  153.  
  154. ---
  155.  
  156. ### 8. System Configuration
  157.  
  158. #### Enable Windows Long Paths
  159.  
  160. Prevents errors with deep folder structures in AI projects.
  161.  
  162. 1. **Download:** [Enable_Windows_Long_Paths.reg](https://www.patreon.com/file?h=111553210&m=550698799).
  163. 2. **Run:** Double-click the downloaded `.reg` file and accept the prompt to modify your registry.
  164.  
  165. #### Virtual RAM (Page File)
  166.  
  167. Crucial for loading large models, which can use system RAM (and virtual RAM) as overflow.
  168.  
  169. 1. Set up a **minimum of 100 GB** (102400 MB) of virtual RAM (page file) on your fastest drive (e.g., your C: drive if it's an NVMe SSD).
  170. 2. **How-to:** Search for "View advanced system settings" > Performance "Settings..." > "Advanced" tab > Virtual memory "Change..." > Uncheck "Automatically manage..." > Select C: drive > "Custom size" > set Initial and Maximum to `102400`.
  171.  
  172. ---
  173.  
  174. ### 9. Environment Variables Final Check
  175.  
  176. After all this, your System `Path` variable should contain (at minimum) these entries. The order matters, with Python, cuDNN, and your main CUDA version near the top.
  177.  
  178. - `C:\Python310\Scripts\`
  179. - `C:\Python310\`
  180. - `C:\Program Files\NVIDIA\CUDNN\v9.12\bin\12.9`
  181. - `C:\Program Files\NVIDIA\CUDNN\v9.12`
  182. - `C:\Program Files\NVIDIA\CUDNN\v9.12\bin\12.9` (This is the `CUDNN_PATH` value, also good to have in `Path`)
  183. - `C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\bin`
  184. - `C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\libnvvp`
  185. - `C:\TensorRT_10_13_2_6\lib`
  186. - `C:\TensorRT_10_13_2_6`
  187. - `C:\ffmpeg_latest`
  188. - `C:\Program Files\Git\cmd`
  189. - `C:\Program Files\Git\bin`
  190. - `C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64`
  191. - ... (other Windows system paths)
  192.  
  193.  
  194. ---
  195.  
  196. ### 10. Common Troubleshooting Fixes
  197.  
  198. This is where the old transcript shines. If an application fails, it's almost always a `PATH` or DLL issue.
  199.  
  200. #### **Problem:** `git` is not recognized...
  201.  
  202. You see an error `git is not recognized as an internal or external command`.
  203.  
  204. - **Fix:** The installer failed to add Git to your `PATH`. Follow step 7 ("Git") above to **manually add** `C:\Program Files\Git\cmd` and `C:\Program Files\Git\bin` to your System `Path` variable. Close and re-open CMD to check.
  205.  
  206.  
  207. #### **Problem:** `CUDA_PATH is set but CUDA wasn't able to be loaded` (cuDNN Mismatch)
  208.  
  209. An application (like `LivePortrait` in the transcript) fails to load, complaining about CUDA or cuDNN. This means the application was built for a _different_ cuDNN version (e.g., 8.9) than your system default (9.12).
  210.  
  211. - **Fix (The "Override" Method):**
  212.  
  213. 1. Go to the [NVIDIA cuDNN Archive](https://developer.nvidia.com/cudnn-archive) and download the **zip file** for the specific version the app needs (e.g., `cuDNN 8.9.7`).
  214. 2. Create a new, simple folder (e.g., `C:\cudnn8.9`).
  215. 3. Extract the zip's contents (the `bin`, `include`, `lib` folders) into `C:\cudnn8.9`.
  216. 4. Go to your System `Path` variables.
  217. 5. Click "New" and add the path to the `bin` folder of this new version (e.g., `C:\cudnn8.9\bin`).
  218. 6. **Crucially:** Use the "Move Up" button to move this new entry to the **very top** of the `Path` list.
  219. 7. This makes it the _new default_ for your system, overriding the 9.12 version. Run your app. Remember to move it back down when you're done.
  220.  
  221. #### **Problem:** `ONNX Runtime` Fails (DLL Hell)
  222.  
  223. An application (like `FaceFusion` in the transcript) fails, and the console shows errors related to `onnxruntime` and missing DLLs. This means the app's isolated environment can't find the necessary cuDNN files.
  224.  
  225. - **Fix (The "Manual Copy" Method):**
  226.  
  227. 1. Go to your `cuDNN` installation folder (the one the app _needs_, e.g., `C:\Program Files\NVIDIA\CUDNN\v9.12`).
  228. 2. Open the `bin\12.9` folder and copy all the `.dll` files.
  229. 3. Navigate to the app's Python virtual environment (venv). The path will be something like:
  230. C:\FaceFusion_v3\venv\Lib\site-packages\onnxruntime\
  231. 4. Paste all the `.dll` files you copied directly into this `onnxruntime` folder. This manually provides the app with the libraries it was missing.
  232.  
  233. #### **Problem:** `Triton` Errors
  234.  
  235. You get errors related to `triton` during model loading or training.
  236.  
  237. - **Fix:** This is often a caching issue.
  238.  
  239. 1. Go to your user folder: `C:\Users\[YourUsername]\`
  240. 2. Delete the entire `.triton` folder.
  241. 3. A `bat` file to do this automatically is also provided here: [Clear_Triton_Cache.zip](https://www.patreon.com/file?h=111553210&m=526715040).
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Ronhadob
    7 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=zrbauarhro
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment