python模块下载失败_ubuntu16.04安装python的requests模块失败,怎么解决?

论坛 期权论坛 脚本     
已经匿名di用户   2022-4-13 16:44   3092   0

最近在尝试用python写爬虫,需要用到requests模块,却安装不上。

系统ubuntu16.04, 使用系统默认的python2.7. 运行python代码时,报错:

p@G :~/Desktop$ sudo apt-get install python-requests

Reading package lists... Done

Building dependency tree

Reading state information... Done

You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies.

bcloud : Depends: python3-crypto but it is not going to be installed

Depends: python3-pyinotify but it is not going to be installed

Depends: python3-keyring but it is not going to be installed

python-requests : Depends: python-urllib3 (>= 1.13.1) but it is not going to be installed

Depends: python-chardet but it is not going to be installed

Depends: python-urllib3 (< 1.13.2) but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

尝试更新软件源,未解决。

尝试安装python3-crypto等模块,未解决。

百度说,可能是PPA版本问题,但未安装和删除过PPA.

这是什么问题?

Any help will be welcomed!!

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:81
帖子:4969
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP