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