• Register
0 votes
63 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,060 points

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/

11 6 4
34,950 points

Related questions

1 vote
1 answer 7 views
7 views
Problem : When I run pip install -r requirements.txt , I get this Error : ImportError: No module named pkg_resources Actually I'm deploying a Django app to a dev server and pkg_resources appears to be distributed with setuptools Any ideas as to why pkg_resources is not on the path?
asked Mar 12 Shovo210 13.2k points
1 vote
1 answer 38 views
38 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, 2020 LizzyM 6.1k points
0 votes
1 answer 36 views
36 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, 2020 LizzyM 6.1k points
0 votes
1 answer 783 views
783 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, 2020 LizzyM 6.1k points
1 vote
1 answer 62 views
62 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, 2020 Gavin 15.3k points
0 votes
1 answer 79 views
79 views
Problem: I am trying to implement Social Login in Django. I have already installed social_auth_app_django with below command pip install social-auth-app-django And I also added this to installed apps in my settings file. INSTALLED_APPS = [ 'django.contrib.admin', ' ... migration python manage.py migrate ModuleNotFoundError : No module named mysite.core Note. I am using Python 3.6.2andDjango 1.11.7
asked Dec 25, 2020 sasha 16.2k points
0 votes
1 answer 38 views
38 views
Problem : Getting bellow python and django error , any help: 'virtualenv' is not recognized as an internal or external command, operable program or batch file.
asked Mar 6 Wafa Abu Yousef 6.1k points
1 vote
2 answers 5.3K views
5.3K 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
1 vote
1 answer 36 views
36 views
Problem: tried to import reverse from django.core.urlresolvers. Using Python 3.5.2, Django 2.0 and MySQL. modulenotfounderror: no module named 'django.core.urlresolvers'
asked Feb 24 Sofia Castro 4.2k points
0 votes
1 answer 64 views