Tuesday, December 1, 2020

Re:

Hello Gregory, I use Windows too. 
If you want to install django you can try these steps
 Make a directory where you want to work in. You can use the command below
$ mkdir mydir
Change directory to this new directory
$ cd mydir

- create a virtual environment in this directory using the command.
$ Python -m pip venv env
( env is arbitrary and can be any name of your choice)

Next, activate the virtual environment using the command below
$ env\Scripts\activate
( env should be replaced with your virtual environment's name)

You can now install install django in this virtual environment 
$ Python -m pip install django
This should do
Alternatively, you can install django on your Python without creating a venv using
$ Python -m pip install django

This might not be necessary though, as you'd probably create your protein virtual environments

To check if django is installed, you can run
$ Python -m pip freeze
I hope this helps

On Dec 2, 2020 05:00, "Gregory kalinga" <kalingagregory10@gmail.com> wrote:
Ofcorse I am a biginner on python and I thank thee for your advice I will work on it. 


On Wed, 2 Dec 2020, 01:42 Kasper Laudrup, <laudrup@stacktrace.dk> wrote:
Hi Kalinga,

On 01/12/2020 23.12, Gregory kalinga wrote:
> hi kasper.
>   thanks for answer, my aim is to install django but when i try  to make
> it i get this error  'prog>python -m install django
> Unable to create process using 'C:\Users\KALINGA
> Gregory\AppData\Local\Programs\Python\Python39\python.exe -m install django'
> here now i don't know what to do after

Sorry, but I didn't write the exact command you have to use.

I can see you are using Windows. That's not a platform I'm used to and
it would be relevant if you write something like that when asking people
for help. That was what I was hinting at in my previous answer to you.

I know you are trying to install Django, but I would very much recommend
that you try to learn some basics on how to use Python first.

Again, I have no idea what background you have, what your experience is
or what you are trying to achieve, but it seems like you are very much a
beginner in programming in the first place.

There's absolutely nothing wrong with that of course and I could be
wrong, but in case I'm not, I'd suggest you start by learning some
basics of Python before moving any further. I'm sure someone can guide
you to some useful tutorials/books/videos.

To answer your actual question. You are trying to invoke the python
interpreter with a module on the command line (with the "-m" option) and
passing arguments to that module ("install Django").

You are missing the name of the module you want to use ("pip") so try to
include that.

If that doesn't make any sense to you, I only recommend that you try to
learn some basics first. Otherwise things will only get more and more
confusing from now on.

I mean that in the most kind and helpful way.

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4826ebd5-b633-863d-f025-43ca73998643%40stacktrace.dk.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAeTWb-qWUd_vSJPj7hWKHL0AN8VHBvKx6CM-QHLpMYAq1z%2BPA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGL8puVDB7WyWgL1ORNY1s8y0kgzLWidHHBcYV83ezDS0Zduhg%40mail.gmail.com.

No comments:

Post a Comment