Creating a virtual environment in Django/Python with venv 1

We are going to start a new section as I told you in the introduction in which we are going to create a kind of online store at least some important features and remember that all this content I am migrating a little from the old Django course that I started in its version 3 so to renew it a little bit well clarified that here we have or we are going to start by creating a new project but before that obviously we have to create our virtual environment just like we have always done so for that let's remember that it is a bit of a nightmare always you decide there how you prefer to create it if you prefer to create it directly by the commands I remember to install it then we create it we move there we start to activate it and install the packages or directly from your Visual Studio Code that here I have the selection the creation part I also have it here I have to see where I really placed it I am going to go for the second one which is the creation with this in theory sometimes it is like Visual Studio Code has like a slightly stronger link with the virtual environment and there is like it says greater possibilities that it recognizes the virtual environment then it helps us a little bit with the autocompletion but still So there are times when it's not the only thing I don't like about Python development with Visual Studio Code, so here remember that you have to press command shift com shift p if you're on a Mac or control control shift p if you're on Windows or Linux and we click here to create an environment, here it will ask us for the folder.

Otherwise, complete the steps that VSC shows you, and you will have created your virtual environment.

I agree to receive announcements of interest about this Blog.

Let's create the virtual environment to build our application in Django.

- Andrés Cruz

En español

This material is part of my complete course and book; You can purchase them from the books and/or courses section, Curso y Libro desarrollo web con Django 5 y Python 3 + integración con Vue 3, Bootstrap y Alpine.js.