How To Install Python, Setup Virtual Environment VENV, Set Default Python System Path & Install Git
SECourses
How to install Python, have multiple Python installations, set system wide default Python version. How to compose venv for any Python installation, change Python default path, and install SD web UI properly. Discord: https://bit.ly/SECoursesDiscord.
If I have been of assistance to you and you would like to show your support for my work, please consider becoming a patron on 🥰 https://www.patreon.com/SECourses
Technology & Science: News, Tips, Tutorials, Tricks, Best Applications, Guides, Reviews ⤵️ https://www.youtube.com/playlist?list=PL_pbwdIyffsnkay6X91BWb9rrfLATUMr3
Playlist of #StableDiffusion Tutorials, Automatic1111 and Google Colab Guides, DreamBooth, Textual Inversion / Embedding, LoRA, AI Upscaling, Pix2Pix, Img2Img ⤵️ https://www.youtube.com/playlist?list=PL_pbwdIyffsmclLl0O144nQRnezKlNdx3
0:00 Very comprehensive guide to #Python installation on Windows 1:11 What is CMD - Command Prompt 1:56 How to open a cmd window and use it 2:04 How to run cmd as administrator 2:17 What is Git and why do we need Git 2:35 How to download and install Git 3:30 Why do we need Git large and how to download and install Git large 3:50 Why do we need specific Python versions 4:03 How to download and install any Python version 4:32 How to verify if Python installed or not 4:55 How to customize Python installation 5:17 Python add path checkbox during installation 6:20 How to verify your Python installed version 6:35 How to change or set system environment variables path of Python 7:15 How to install another Python version - multiple Python installations 8:30 How to change default Python version when having multiple Python installations 9:30 How to use specific Python installation when having multiple Python 9:35 What is Python venv and why do we need it 10:40 How to start cmd inside certain directory 10:55 How to compose a Python #venv 11:19 How to activate Python venv 11:58 How to compose a venv from different Python version 13:39 Demo of installed package separation from other Python installations inside venv 14:17 Where to find installed packages in Python installation folder 14:50 How to write a bash script to automatically activate Python venv and start a cmd 15:24 How to view extensions of files in Windows 15:43 The script itself to activate venv and start cmd 17:11 How to install Stable Diffusion Automatic1111 web UI 17:30 How to use Git clone to download entire project from GitHub repo
A Comprehensive Guide to Python Installation, Git, and Virtual Environments on Windows
Introduction
Python is a versatile and powerful programming language that has gained significant popularity in recent years. In this article, we will provide a step-by-step guide to installing Python on Windows, using the Command Prompt, working with Git, and setting up virtual environments using Python venv.
Getting Started with the Command Prompt
The Command Prompt (CMD) is a Windows command-line interface used to execute commands, navigate directories, and manage files. To open a CMD window, search for 'cmd' in the Start menu and select the application. Git: Version Control for Your Code
Git is a widely-used distributed version control system that helps manage changes in your code over time. It allows multiple developers to collaborate on the same project, tracking their changes and preventing conflicts.
Managing Large Files with Git Large File Storage (LFS)
Git LFS is an extension that allows you to manage large files more efficiently. It replaces large files with text pointers in your Git repository, which makes it easier to work with large files while keeping your repository small. Visit the Git LFS website (https://git-lfs.github.com/) to download and install the extension.
Python Installation on Windows
There may be instances when you need a specific Python version for a project. To download and install any Python version, visit the official Python website (https://www.python.org/downloads/) and select the desired version. During the installation process, make sure to check the "Add Python to PATH" checkbox to ensure that the Python executable is added to your system's environment variables.
Working with Python Virtual Environments
Python venv allows you to create isolated environments for different projects, each with its own Python interpreter, packages, and dependencies. To create a virtual environment, open the CMD window in your project directory and run 'python -m venv env_name'. To activate the virtual environment, execute ' env_name\Scripts\activate' on Windows.
Installing Packages in a Virtual Environment
Packages installed inside a virtual environment are isolated from other installations. This is useful for managing project-specific dependencies without affecting the global Python installation. To view installed packages in the Python installation folder, navigate to the 'Lib\site-packages' directory inside the virtual environment.
thumb source: freepik wangxina ... https://www.youtube.com/watch?v=B5U7LJOvH6g
87936244 Bytes