V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
LINEX
V2EX  ›  Python

pip 无法安装 pip

  •  
  •   LINEX · 2015-09-17 23:49:09 +08:00 · 4815 次点击
    这是一个创建于 3142 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    2 条回复    2015-09-30 09:47:25 +08:00
    Axurez
        1
    Axurez  
       2015-09-30 09:25:11 +08:00
    难道不是权限问题嘛
    LINEX
        2
    LINEX  
    OP
       2015-09-30 09:47:25 +08:00
    @Axurez 问题已经解决,这个得自己下载 libdnet 包来安装
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3181 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:50 · PVG 22:50 · LAX 07:50 · JFK 10:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.