python 3.4 的请求模块

requests module for python 3.4

我需要帮助安装 Python 3.4 的 'requests' 模块。这是我在 Python shell:

中尝试过的
>>> python -m pip install requests
     file "<stdin>", line 1
       python -m pip install requests
syntax error

您需要从命令行 运行,而不是在 python 终端内。例子-

python -m pip install requests

直接,无需先打开python。