Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

I'm actually attempting to install Django from cmd with the help of 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

1 Answer

0 votes
by (26.4k points)

Just try to execute the below code in windows command prompt rather than python shell.

pip install django

Improve your knowledge in Python from scratch using python online course

For more details, do check out the below video tutorial...

Related questions

0 votes
1 answer
asked Oct 8, 2019 in Python by Rajesh Malhotra (19.9k points)
0 votes
1 answer
0 votes
1 answer
asked Nov 29, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...