python安装库失败cannot determine archive_pip 无法安装 pip

最近看本书《 Understanding network hacks:Attack and Defence with Python 》

第四章让安装 scapy 。发现 scapy 依赖 dnet

我使用这个命令

sudo pip install dnet -i --trusted-host http://pypi.douban.com/simple

无法安装成功。

报错信息:

The directory '/Users/line/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/line/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting http://pypi.douban.com/simple

Downloading http://pypi.douban.com/simple (3.0MB )

100% |████████████████████████████████| 3.0MB 38.5MB/s

Cannot unpack file /private/tmp/pip-CiWfFY-unpack/simple (downloaded from /tmp/pip-hkmfpS-build, content-type: text/html; charset=utf-8 ); cannot detect archive format

Cannot determine archive format of /tmp/pip-hkmfpS-build

这个问题如何解决?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值