尝试使用以下命令安装 urllib.request 模块
sudo pip install urllib.request
但它回来了
Downloading/unpacking urllib.request
Could not find any downloads that satisfy the requirement urllib.request
Cleaning up...
No distributions at all found for urllib.request
Storing debug log for failure in /home/mounarajan/.pip/pip.log
如何安装这个模块?
最佳答案
urllib.request 仅在 python3 分支中可用。有关详细信息,请参阅以下帖子。 urllib.request in Python 2.7
关于python - urllib.request 模块无法安装到我的系统中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29382709/