簡體   English   中英

無法使用 easy_install 安裝請求

[英]Unable to install requests using easy_install

無法使用 easy_install 安裝請求,python 版本為 2.7.10

sudo easy_install-2.7 請求

搜索請求閱讀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')

這是我安裝“請求”模塊所遵循的步驟。

https://pip.pypa.io/en/latest/installing/下載 get-pip.py

將下載的文件 get-pip.py 放在Drive:.....\Python\Python37\ Open Command Prompt at 'Python37' 文件夾下並運行

python get-pip.py

成功安裝 pip 后,運行

pip install requests

這應該可以解決所有問題,並且您應該能夠在 Python Shell 中導入請求。

運行pip install requests來安裝包

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM