• Register
0 votes
93 views

I am setting up a django project and i am using python for this. I heard that the best way to this is by setting up a virtual environment. I installed my virtual environment by typing the command in my command promp by using:

            

pip install virtualenvwrappwer-win



But when I want to use that virtual environment it shows me no module named virtualenvwrapper.

If I can not load my virtual environment I can not start my project. I am new In django if anyone know the solution please help me to set up my project.

6.1k points
edited by

Please log in or register to answer this question.

1 Answer

0 votes

If you want to se up a django project the best way to do this is by creating a virtual environment because you don’t want to disturb the entire system. You have created a virtual environment but you can’t work on that becasue you need a separate environment to work on it. After typing the command:

       

pip install virtualenvwrapper-win

you need to set another command by typing:

       

mkvirtualenv test

test is basically a name for a environment . You can use other name if you want . Then again go to your command prompt and type:

       workon test[note: test is a basic name, use what you have given your environment name] 

It should work.

To set up your django project you need to install django by using the command:

       

 pip install django

or:

 pip install django==the specific version you need

       

Then you check in the link for setting up your project.

Link: https://docs.djangoproject.com/en/3.0/topics/install/

35k points
edited by