• Register
0 votes
15 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.

10 7 2
6,050 points

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/

11 6 4
34,930 points

Related questions

1 vote
1 answer 16 views
16 views
Problem: I learnt pyhton programming and I am new to django. I installed django in my system using some command : pip install virtualenvwrapper-win mkvirtualenv test workon test pip install django It shows me that I have installed django in my system but when I ... not recognized as an internal or external command, operable program or batch file. Can anyone help me to solve out this problem?
asked Apr 4 LizzyM 6.1k points
0 votes
1 answer 26 views
26 views
workon test I learnt pyhton programming and I am new to django. I installed django in my system using some command : pip install virtualenvwrapper-win mkvirtualenv test workon test pip install django It shows me that I have installed django in my system but when I restart ... an internal or external command, operable program or batch file. Is there any problem in my system, an anyone help me out?
asked Mar 15 LizzyM 6.1k points
0 votes
1 answer 404 views
404 views
I have python 3 and python 2.7 installed in my system. I am a newbee and I tried to run file : ~/usr/bin/env python 2.7  But when I try to run the file it give me an error : ~/usr/bin/env python 2.7 No such file or directory How can I check my default python version? How can I run the file? How to run the file without changing my default python version?
asked Mar 9 LizzyM 6.1k points
1 vote
1 answer 42 views
42 views
Problem: I installed scikit-learn. When I try to run again: sudo pip install -U scikit-learn I get this message proving again that installation is ok: Requirement already up-to-date: scikit-learn in /home/mebegueradj/.local/lib/python2.7/site-packages Still, I can’t import it. How to resolve this problem?
asked Mar 7 Gavin 15.3k points
1 vote
2 answers 2.1K views
2.1K views
Problem : Getting bellow python and django error 'virtualenv' is not recognized as an internal or external command, operable program or batch file.
asked Nov 8, 2019 peterlaw 6.9k points