python安装库失败cannot determine archive_pip 无法安装 pip
最近看本書《 Understanding network hacks:Attack and Defence with Python 》
第四章讓安裝 scapy 。發(fā)現(xiàn) scapy 依賴 dnet
我使用這個(gè)命令
sudo pip install dnet -i --trusted-host http://pypi.douban.com/simple
無法安裝成功。
報(bào)錯(cuò)信息:
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
這個(gè)問題如何解決?
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的python安装库失败cannot determine archive_pip 无法安装 pip的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 双胞胎萌娃打架道歉成相声现场 网友看完大
- 下一篇: python中truncate的用法_在