Essential AI Tools and Libraries: A Guide to Python, Git, C++ Compile Tools, FFmpeg, CUDA, PyTorch

preview_player
Показать описание
Welcome to the Pillars of AI Application Libraries: How to Install Tutorial! 🤖 Are you ready to embark on a journey of installing AI libraries and applications with ease? 💻 In this video, we'll guide you through the process of installing Python, Git, Visual Studio C++ Compile tools, and FFmpeg on your Windows 10 machine. 📊 We'll also show you how to set your default Python version, create a virtual environment, and install any application with a specific Python version. 🔓
Whether you're a beginner or an expert, this tutorial is designed to help you overcome potential errors and mistakes that you may encounter during the installation process. 💡 So, let's get started! 🎬 Throughout the tutorial, we'll provide advanced tips and tricks to help you navigate the installation process with ease. 💪 So, what are you waiting for? 🤔 Let's dive in and start the installation process together! 🎉

Tutorial GitHub Readme File ⤵️

Must Follow New Resource (18 September 2024) :

Stable Diffusion GitHub repository ⤵️

SECourses Discord To Get Full Support ⤵️

#Python #StableDiffusion #AI #Torch #PyTorch #VENV

0:00 Introduction of what you will learn in Essential AI Tools and Libraries A Guide
4:04 What is command line interface (cmd) and how to open it
4:15 How to check and verify your default installed Python
4:27 How to verify whether Git is installed or not
4:37 How open and edit your environment path and why it is extremely important
4:50 How to edit system environment variables
5:31 How to install Python on Windows
6:12 What configuration and settings you need when installing Python for AI applications
7:28 How to see where the system is finding my installed default Python
8:01 How to install Git on Windows
8:44 How to properly install Visual Studio C++ Compile tools to solve C++ 14.0 or greater is required
9:24 InsightFace install error and how we will fix it
11:25 How to disable pip cache or purge to redownload and fix erroneous pip files download or corrupted pip cache
12:16 How to install Git Large which is necessary for Git LFS
12:34 How to check if FFmpeg is installed and set on Windows
12:45 How to install and setup FFmpeg on Windows
13:40 How to add downloaded FFmpeg exes to the system environment variables path
14:18 How will system look system variables path with which order, which Python version will get used
14:36 How to verify if your FFmpeg setup is working correctly or not
14:59 How to install CUDA Toolkit libraries on Windows
15:46 How to find other and previous CUDA Toolkit versions
16:45 Where CUDA Toolkit libraries path are added in System Environment Variables path
17:12 All about Git commands such as checkout, clone, pull, stash, pop
17:22 How to install Automatic1111 Stable Diffusion Web UI properly
17:46 How to open a CMD in that current drive directly
17:56 How to do a git clone to download the Automatic1111 Web UI or any GitHub repository
18:18 How to do a git checkout to switch different branches such as dev branch
18:38 Explanation of different branches in GitHub repository, example Automatic1111 repo
19:00 How to do git pull to update and verify latest version of a repo
19:10 How to switch back to main / master branch
19:27 When and how to use git stash and git stash pop commands
21:04 How to fix please commit your changes or stash them before you merge error
21:44 How to get back your modified file after git pull and overwrite
22:29 Python virtual environment / venv operations
22:42 How to start installation of Automatic1111 SD Web UI after git clone
23:51 How to activate any Python virtual environment / venv, example venv of Automatic1111 Web UI
24:27 How to install latest PyTorch / Torch version to Automatic1111 SD Web UI
24:44 How to uninstall any library from a VENV
25:05 How to list specific versions of any Python library to install any specific version from list
25:26 How to install specific version of PyTorch with GPU and CUDA
25:41 How to fix PyTorch / Torch with only CPU support installation
26:02 How to install older versions of PyTorch with previous CUDA and GPU
26:14 How to list certain CUDA version compatible PyTorch / Torch versions
26:32 If you are not able to find your specific version library it is due to your Python version
26:45 How to compose a virtual environment / VENV with Python
27:12 How to install different Python versions at the same time
28:29 How to copy file path directly in Windows
28:39 How to use second installed Python version
28:49 How to generate specific Python version having virtual environment / VENV
29:34 How to change your default Python version
30:58 How to install runpodctl or any exe to your system cmd
Рекомендации по теме
Комментарии
Автор

This detailed walkthrough is a lifesaver for those diving into AI without a programming background. The step-by-step instructions on setting up tools like Python, Git, and CUDA libraries are invaluable. Kudos for simplifying a potentially complex process! ❤👍

manojkchauhan
Автор

No one produces quality content as much as you. I hope your quality is understood. I personally thank you endlessly

Автор

Highly recommend this guys tutorials. I've watched a lot of AI videos from other "Experts" but find these give the most indepth tutorials out there, even I can follow them. He really knows his stuff. Doc your English is fantastic my only suggestion is to Slow it down a little as it was a little fast (still managed to follow it) keep up the fantastic work. I don't know how you find the time to do all of this incredible hard work but I for one are very glad that you do.

Dazzastrous
Автор

This tutorial put together everything I've been wondering about though my entire journey of starting stable diffusion. Thankyou Sir.

rbdesignguy
Автор

▶ 0:00 1. Introduction: 📚
Welcome to the pillars of AI application libraries installation tutorial.

▶ 0:43 2. Installing Python: 🐍
Step-by-step guide to installing Python 3.10 and 3.11 on Windows.

▶ 0:53 3. Installing Visual Studio C++ Compile Tools: 🛠
Learn how to fix the 'Microsoft Visual C++14 or greater is required' error when installing certain AI applications.

▶ 1:15 4. Setting up FFmpeg: 📽
Install and configure FFmpeg to ensure smooth functioning of AI applications like video animation.

▶ 1:35 5. Installing CUDA Libraries: 🚀
Explore the necessary steps for installing CUDA libraries to enable high-performance computing for AI applications.

▶ 1:44 6. Working with Git: 📜
Learn essential Git commands like clone, pull, stash, and stash pop for managing open source AI repositories on GitHub.

▶ 2:10 7. Managing Virtual Environments: 💻
Discover how to create, activate, and install/uninstall libraries in virtual environments for AI development purposes.

▶ 2:45 8. Multiple Python Versions: 📊
Understand the process of managing multiple Python versions and setting a default version for specific applications.

▶ 2:57 9. Installing Applications and Setting Environment Variables: 📁
Learn how to install any application and configure its environment path variable for seamless integration with other AI tools.

▶ 3:09 10. Using Rampot CTL: 📂
Explore the file transfer capabilities between Rampot and your computer with Rampot CTL.

▶ 3:24 11. Preparing Windows 10 Environment: 🖥
Guidance on setting up a clean Windows 10 virtual machine for smooth application installation.

▶ 3:37 12. Time-Saving Tips and Guarantees: ⏱
Discover valuable tips to save time and avoid potential errors in your AI development journey.

▶ 3:53 13. Command Prompt and Python Installation: ⌨🔧
Understand the importance of command prompt and follow the step-by-step process to install Python.

▶ 4:11 14. Understanding Environment Variables: 🌐
Get acquainted with system environment variables and their significance in locating installed applications.

▶ 4:34 15. Path Variables and Application Installation: 🛣
Learn how to edit path variables to include application installations for easy access.

▶ 5:31 16. Installing Python 3.x: 🐍
Discover why Python 3.x is recommended and learn how to download and install Python 3.10.11.

▶ 5:58 17. Customizing Python Installation: ⚙
Follow the detailed installation process, including customizing the installation path.

▶ 6:51 18. Completion and Path Length Limit: ✅
Learn important final steps, including disabling the path length limit for smoother functionality.

▶ 7:04 19. Installing Python
Step-by-step guide to install Python and set up the environment variables.

▶ 7:57 20. Installing Git
Learn how to install Git and its importance for cloning AI repositories.

▶ 8:45 21. Installing C++ Compile Tools
Discover the significance of Visual Studio C++ Compile Tools for certain AI libraries.

▶ 9:01 22. Installing Inside Face Library
Understand the need for C++ tools to install the Inside Face library and how to resolve related errors.

▶ 12:32 23. Installing FFmpeg
Learn how to install FFmpeg and add it to the system variables path.

▶ 14:07 24. Installing FFmpeg
Learn how to install FFmpeg on your system

▶ 14:57 25. Installing CUDA libraries
Get step-by-step instructions to download and install CUDA libraries

▶ 16:43 26. Setting up CUDA environment variables
Learn how to configure system environment variables for CUDA

▶ 17:24 27. Cloning a Git repository
Find out how to clone a Git repository onto your system

▶ 18:28 28. Working with different branches
Learn how to switch between Git branches and update them

▶ 19:40 29. Using git stash
Discover the usefulness of git stash in resolving conflicting files

▶ 21:19 30. Git Stash: Saving and Restoring Modifications
Learn how to use the Git stash command to save and restore modified files in your repository.

▶ 22:27 31. Working with Virtual Environments
Discover the process of creating and activating a virtual environment for Python development.

▶ 23:17 32. Installing Libraries in a Virtual Environment
Understand how to install specific libraries in a virtual environment for AI applications.

▶ 23:40 33. Activating a Virtual Environment
Learn how to activate a virtual environment and make changes that only affect that environment.

▶ 24:32 34. Updating PyTorch Library
Discover the process of updating the PyTorch library to a specific version in a virtual environment.

▶ 26:46 35. Creating Multiple Virtual Environments
Learn how to create multiple virtual environments with different Python versions for diverse project needs.

▶ 27:34 36. Python Installation
Installing Python on Windows and setting up the environment variables.

▶ 29:25 37. Setting Up Virtual Environments
Creating a virtual environment for Python 3.11 and switching between different Python versions.

▶ 30:50 38. Installing Rampot CTL
Downloading and configuring Rampot CTL utility for Rampot projects.

▶ 32:19 39. Importance of Environment Variables
Understanding the significance of setting up and modifying environment variables in Windows.

▶ 32:28 40. Supporting the Creator
Options to support the creator on Patreon, purchasing courses, and following on social media platforms.

▶ 34:02 41. Future Tutorials and Conclusion
Upcoming tutorials and the significance of this tutorial for subsequent content.

Chapters and Summary generated by Tubelator AI.

TubelatorAI
Автор

Hi there, I recently joined your patreon, never did something like this before :-) . Thank you so much for your clear, easy and well communicated videos.For example I had problems installing and running Onetrainer for days! I felt so lost! Then by watching your video about environment, dependencies etc. and the right way how to install it Onetrainer was set up right and it works!!!!
After days of torture I was able to set it up in about 10 Minutes with zero stress.
For people like me, who are no scientists or programmers, or informatic nobel-prize-award-winners;for people like my who are instantly thinking about giant snakes when you try to tell them about anaconda or python;who would use torch maybe in the Devilscave in Bavaria Germany on exploration;etc etc.... <3

marcoAuthentistic
Автор

Hi Dr. F, thanks for your videos. I find them very helpful. I have a question regarding Kohya following the essentials of this video. When I launch the application, Kohya opens, but I get this error in command that says:

"Error during Git operation: Command '['git', 'submodule', 'update', '--init', '--recursive',
'--quiet']' returned non-zero exit status 128.."

While Kohya opens, I am unable to have captioning work via WD14, which leads me to assume there is a sort of error during my installation. Do you possibly know what the problem could be? Thank you very much for your help.

Sqvusz
Автор

Thank you so much for all the content! <3

juanpablo
Автор

You are amazing, thank you, you are the best

mobinpourabbas
Автор

yapmış olduğunuz güzel anlatım için teşekkür ederim beklenmedik durumlarda oluşan ve çözümü için kaç gündür uğraşıp bir türlü sonuca varamadığım problemleri sayenizde çözmüş bulundum dilerim ki daha büyük kitlelere ulaşır ve böyle anlatımı güzel videolar çekmeye devam edersiniz esenlikler

ayhanverdiyev
Автор

This is a good python pytorch setup tutorial

I would always forget the index url bit!
Thanks for this video.

AniketRajAniketkno
Автор

All this installation is for those who will use it on their own pc, right?
Those who want to use it on Massed Compute do not need it?

luis
Автор

Thank you for this video. It helped me understand this SO much better!

dirtdoggy
Автор

🎯 Key Takeaways for quick navigation:

00:00 🌐 *Introduction to the Tutorial*
- Overview of the tutorial's focus on essential AI tools and libraries.
- Emphasis on making AI more accessible for regular users, not just programmers.
- Mention of topics like Python installation, C++ compile tools, FFmpeg, CUDA, Git, and virtual environments.
00:28 🐍 *Python Installation*
- Instructions on installing Python 3.10 and 3.11 and setting the default Python version.
- Addressing the Microsoft Visual C++ 14 or greater error during installations.
- Ensuring compatibility with AI applications that compile their own wheels.
01:25 🎥 *FFmpeg Installation*
- Guidance on installing and setting up FFmpeg on Windows.
- Resolving errors related to FFmpeg for applications like Whisper or video animation AI.
- Highlighting the importance of FFmpeg for various AI applications.
01:55 🖥️ *CUDA Libraries Installation*
- Demonstrating the installation process for CUDA libraries, essential for certain AI applications.
- Emphasizing the need to register a free Nvidia developer account for downloading CUDA.
- Showing flexibility in choosing different CUDA versions based on application requirements.
02:23 🧠 *Git and Version Control*
- Instruction on installing Git and Git Large for cloning and managing GitHub repositories.
- Explanation and demonstration of Git commands like checkout, pull, clone, stash, and stash pop.
- Emphasis on the significance of understanding and using version control in the AI journey.
03:19 🌐 *Virtual Environments and Library Management*
- Overview of virtual environments, including creating and activating them.
- Demonstrating the installation and uninstallation of AI libraries within virtual environments.
- Addressing the potential need for specific library installations to resolve errors.
03:43 💻 *System Environment Variables*
- Importance of system environment variables for AI applications to locate installed tools.
- Guidance on editing system environment variables, focusing on the "path" variable.
- Ensuring proper setup for applications like Python, Git, CUDA, and FFmpeg to avoid future errors.
04:10 📝 *Practical Demonstration - System Check*
- Real-time demonstration of a freshly installed Windows 10 virtual machine.
- Verifying the absence of installed tools like Python and Git.
- Navigating through the system environment variables settings.
05:35 📥 *Python Installation and Configuration*
- Step-by-step guide on downloading and installing Python 3.10.11.
- Importance of adding Python to the system environment variables path.
- Explanation of the installation choices and disabling path length limit.
06:58 📤 *Git Installation and Configuration*
- Instructions on downloading and installing Git for Windows.
- Demonstrating the importance of Git for cloning and managing repositories.
- Showing the process of adding Git to the system environment variables path.
08:44 🛠️ *Visual Studio C++ Compile Tools Installation*
- Addressing the necessity of Visual Studio C++ Compile tools for certain AI applications.
- Guidance on downloading and installing the required C++ tools.
- Fixing the Microsoft Visual C++ 14 or greater error by installing these tools.
24:03 🛠️ *Installing and Activating Virtual Environment*
- Activating a virtual environment for Automatic1111 Web UI.
- Using the `activate` command inside the virtual environment's `scripts` folder.
- Demonstrating the isolation of changes to the specific virtual environment.
24:57 🔄 *Uninstalling and Installing Torch Versions*
- Uninstalling Torch, Torch Vision, and Torch Audio.
- Copying and modifying the PyTorch installation command for a specific version.
- Providing an index URL for GPU support during Torch installation.
26:23 🖥️ *Managing Python Versions and Virtual Environments*
- Creating a virtual environment using Python's `venv` module.
- Downloading and installing multiple Python versions.
- Setting up and activating a virtual environment for a specific Python version.
30:11 🛤️ *Configuring Default Python Version and Runpodctl*
- Configuring multiple Python versions on the system.
- Adjusting environment variables for the default Python version.
- Downloading and configuring the `runpodctl` utility.
32:34 🌐 *Support and Additional Information*
- Encouraging support on Patreon for access to additional scripts.
- Providing links to various platforms for further engagement.
- Mentioning upcoming tutorials and expressing gratitude for support.

Made with HARPA AI

zipaJopa
Автор

Thanks for sharing. It’s a great tutorial on preparatory homework. It will be very useful if you need to re-enter the computer later.

FusionDraw
Автор

Assalmu aleicum brother at 25 minutes you explain How to change and how to update the virtual environment, but for some reason after installing x-formers the virtual environment is reset, which x-formers is suitable for the virtual environment pip3 install torch=2.2.0 and is it needed at all?

dudududuev
Автор

Great tutorial, thank you!

I have problem, maybe unrelated, in sd forge, i get errors "Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!" how to fix this?

damird
Автор

Hocam kanalınızı yeni keşfettim, ilk izlenimim tek kelimeyle harika. Başarılarınızın devamını dilerim, konuyla ilgilenen arkadaşlarıma da tavsiye ettim. o7

python
Автор

I've installed the 2022 build tools and the C++ thing, but the cuda installer is still telling me "no supported version of visual studio was found". What do i do??

IntiArtDesigns
Автор

I just installed SUPIR & updated to version 24.1.1 using Windows Command Prompt.
However C:\Windows\System32>py -m pip install --upgrade pip

Requirement already satisfied: pip in c:\users\mark (24.1.1)

But the Windows Installer is stating this:

[notice] A new release of pip is available: 23.0.1 -> 24.1.1
[notice] To update, run: python.exe -m pip install --upgrade pip Note: Does not work in Python exe.

What I'm I overlooking or doing incorrectly, if anything?

markschrader