Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Django with pip [duplicate]

Tags:

python

django

Trying to install Django from cmd with pip.

Python 2.7.3, Windows 7

Env var(...C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;)

    help("pip")
    .
    .
    .
    .
    VERSION
        1.3.1

    pip install Django
    File "<stdin>", line 1
    pip install Django
          ^
    SyntaxError: invalid syntax
like image 712
That_User Avatar asked Mar 19 '13 05:03

That_User


2 Answers

Run pip install django from windows command prompt instead of python shell.

like image 197
arulmr Avatar answered Sep 20 '22 12:09

arulmr


under the folder C:\Python27\Scripts (or the folder you installed pip), press SHIFT and right click a blank space then select open command window here, run

pip install Django
like image 45
Fei Zheng Avatar answered Sep 21 '22 12:09

Fei Zheng