在 Windows 上安装请求模块(python 2.7)时遇到问题。
根据文档尝试了以下步骤:
1
pip install requests
错误
'pip' is not recognized as an internal or external command,
operable program or batch file.
2
easy_install requests
错误
'easy_install' is not recognized as an internal or external command,
operable program or batch file.
3
setup.py
错误
C:\Location\Python\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'zip_safe' warnings.warn(msg)
C:\Location\Python\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'include_package_data' warnings.warn(msg)
C:\Location\Python\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
谁能告诉我如何在 windows 上安装模块,而不下载任何新东西。