problem when installing Django

Asked

Viewed 1,267 times

2

I lowered the Django and unpacked on the desktop went to the Cmd typed desktop cd right away cd Django-1.6.2 which is the name of the Django so far so good, more when I run the code python setup.py install to install it the following message appears:

'python' is not recognized as an internal command or external, a operable program or a batch file.

What should I do ?

  • Dude, Django 1.6 is already well outdated, work with Django 1.8 or 1.9. You can try it at a learning level but a lot of it is already obsolete.

1 answer

4

First you need to install the Python.

Download it into the official website. When installing check the box Add Python 3.5 to PATH and installs.

After installing the Python this way he will be listed in PATH of Windows as command and this error will stop.

After that I advise to use the Virtualenv, it is for you to create a separate environment for each project.

pip install virtualenvwrapper-win

Then install you create a Virtualenv for your project:

mkvirtualenv nomedoseuprojeto

After that he sends to work with his Virtualenv servant:

workon nomedoseuprojeto

Now have the Django thus:

pip install django

He’s gonna install the Django in his Virtualenv.

Guide to Installing on Windows

  • Thank you Ricardo valuable tip !

  • 1

    If you answered your question be sure to mark as an answer, it helps other people and closes the post.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.