python - urllib.request 模块无法安装到我的系统中

标签 python ubuntu pip urllib sudo

尝试使用以下命令安装 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/

相关文章:

python - Pandas .rolling 指定时间窗口和 win_type

python - urllib.error.URLError : <urlopen error timed out>

ubuntu - 用于 Ubuntu 的 Acquia Drupal

python - 如何搜索包含模块的pip包

Python没有使用正确的 pip

Python 扩展 : symbol(s) not found for architecture x86_64 error

python - Pandas :从字符串中删除编码

mysql - 无法从外部连接MySQL

Linux平台: Enlarge video screen size N times

python - pip install web3 未安装