无法使用easy_install和python版本安装请求是2.7.10
sudo easy_install-2.7 requests
搜索请求 阅读https://pypi.org/simple/requests/
Download error on https://pypi.org/simple/requests/: [Errno 101] Network is unreachable -- Some packages may not be found!
Couldn't find index page for 'requests' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno 101] Network is unreachable -- Some packages may not be found!
No local packages or working download links found for requests
error: Could not find suitable distribution for Requirement.parse('requests')
答案 0 :(得分:0)
这是我安装“请求”模块所遵循的步骤。
从https://pip.pypa.io/en/latest/installing/下载get-pip.py
将下载的文件get-pip.py放在下:Drive:..... \ Python \ Python37 \ 在“ Python37”文件夹中打开命令提示符 然后运行
python get-pip.py
成功安装pip后,运行
pip install requests
这应该可以解决所有问题,并且您应该能够在Python Shell中导入请求。