Python Virtual Environment: How to Create, Activate, Deactivate and Delete | Windows 11

Veröffentlicht am: 21 Januar 2025
auf dem Kanal: Binary Study
2,235
33

In this video, we will demonstrate how to create, activate, and deactivate the virtual environment in Python. We will also explain how to install Python packages such as NumPy in the virtual environment. Finally, we will show how you can remove or delete the virtual environment. There is no specific Python command to delete the virtual environment created using the Python command. We will use the common command "rm -r" to remove the directory recursively.
We will demonstrate the following python commands to do all these tasks:
1. "python -m venv virtual_environment_name" for creating a virtual environment.
2. "virtual_environment_name\Scripts\ativate" to activate virtual environment.
3. "deactivate" to deactivate the virtual environment.
4. "pip install numpy" to install NumPy
5. "pip uninstall numpy" to uninstall NumPy
6. "rm -r virtual_environment_name" to remove or delete the virtual environment directory.

00:00 Introduction
00:33 Create a virtual environment
01:21 Activate the virtual environment
01:49 Install Python package, NumPy
02:56 Uninstall NumPy
03:55 Deactivate the virtual environment
04:10 Remove/delete the virtual environment

Python Videos
1.    • How to Install Python (3.13.0) on Windows ...  
2.    • Install Jupyter Notebook on Windows 11 and...  

Computer vision & image processing related videos:
1.    • How to load and visualize CIFAR-10 and CIF...  
2.    • How to load and visualize multiple images ...  

Playlists
   • Python Tutorial for Beginners  
   • Colab  
   • Computer Vision  


Auf dieser Seite können Sie das Online-Video Python Virtual Environment: How to Create, Activate, Deactivate and Delete | Windows 11 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Binary Study 21 Januar 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,235 Mal angesehen und es wurde von 33 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!