On 14/05/2017 10:15 AM, Dwaine Zeringue wrote:
> pip install Django in interpreter (via windows command prompt)
> continuously results in syntax errors, specifically, file line 1 pip
> install django "<stdin>"
I have written a couple of batch files for creating a new Python/Django
environment on Windows 8.1 and pasted them in a single Pastebin
https://pastebin.com/fAkTRM5i
First: _cheq.bat
You need to edit this on lines:
40 - change from 35 to 36 if using Python 3.6
47 - change "py_dir" to be the Python directory (mine are both in the
root of C:)
49 - change "env" to the name of your environments parent dir
51 - change "batdir" to your batchfile directory and make sure it is on
the Windows path
108 to 111 - change to suit your install requirements
113 - change if you changed 40
114 & 115 need to be downloaded ahead of time or commented out
119 & 120 ditto if using Python 2.7
_cheq.bat will create the virtual environment and write out the
requirements files ready for pip in the second batch file to install
everything
Execute _cheq.bat in a non-privileged ordinary command prompt with two
arguments being the <envdir> and <project>
Second: _cheq_req.bat
This must be executed with the same two arguments you gave _cheq.bat. It
will read the requirements created by _cheq.bat and install whatever is
listed there.
I put an app named "common" into this batch file so you can remove that
or edit it as you like.
Good luck
Mike
>
> Could anyone guide me in installing a python/Django environment on
> windows
> --
> 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...@googlegroups.com
> <mailto:
django-users...@googlegroups.com>.
> To post to this group, send email to
django...@googlegroups.com
> <mailto:
django...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/django-users.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/django-users/d59b939d-d5dd-4c12-b5e2-ef5a3002de93%40googlegroups.com
> <
https://groups.google.com/d/msgid/django-users/d59b939d-d5dd-4c12-b5e2-ef5a3002de93%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.