【发布时间】:2013-03-19 05:01:27
【问题描述】:
尝试使用 pip 从 cmd 安装 Django。
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
【问题讨论】:
-
你在哪里运行这个命令? pip 应该从 cmd 而不是 python shell 运行。
-
Python(命令行)...问题已解决...谢谢..