pip 无法安装 pip

2015-09-17 23:49:09 +08:00
 LINEX

最近看本书《 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
这个问题如何解决?

4847 次点击
所在节点    Python
2 条回复
Axurez
2015-09-30 09:25:11 +08:00
难道不是权限问题嘛
LINEX
2015-09-30 09:47:25 +08:00
@Axurez 问题已经解决,这个得自己下载 libdnet 包来安装

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/221617

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX