推荐学习书目
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
isukle
V2EX  ›  Python

pip 安装第三方库出现问题????求助

  •  
  •   isukle · Mar 14, 2016 · 4667 views
    This topic created in 3712 days ago, the information mentioned may be changed or developed.
    1 、用 pip 安装第三方库时总是提示: You are using pip version 8.0.2, however version 8.1.0 is available.

    2 、 pip install --upgrade pip 也没用

    3 、就算安装好了第三方库 比如说 pliiow 安装了 也没有用 from PIL import 。。。时也会提示没有这个 model

    求解决方法
    10 replies    2016-03-15 21:56:27 +08:00
    jimzhong
        1
    jimzhong  
       Mar 14, 2016
    你的电脑是不是同时安装了 py2 和 py3?
    013231
        2
    013231  
       Mar 14, 2016
    你先检查下每次用的 pip 是哪个 pip. 系统自带 Python 的 pip? 自己安装的 Python 的 pip? 还是 virtualenv 的 pip?
    patrickstar
        3
    patrickstar  
       Mar 14, 2016
    用 type pip 看看是 2 还是 3 的
    haofly
        4
    haofly  
       Mar 14, 2016
    这个不是 pip 的问题, pip 版本差异不大,升不升级对这个问题没多大影响,这是你安装 pillow 的问题,我以前遇到过好像是 Pillow 有什么依赖没有安装上吧,看看文档 https://pillow.readthedocs.org/en/3.0.x/installation.html
    crayygy
        5
    crayygy  
       Mar 14, 2016
    上 virtualenv
    isukle
        6
    isukle  
    OP
       Mar 15, 2016
    @jimzhong 是滴 求解决方法 mac 系统自带的 py2.7.10 我自己下载的是 py3.5 无论安装任何第三方库都会出现 You are using pip version 8.0.2, however version 8.1.0 is available 。。。这个提示然后在 sublime 或者 atom 里写代码都不行 都提示没有 No module named Pillow
    isukle
        7
    isukle  
    OP
       Mar 15, 2016
    @haofly 不仅仅是 pillow 其他第三方库也不行 都提示 You are using pip version 8.0.2, however version 8.1.0 is available. 但是 pip list 却可以看见已经安装了 但是写代码 import 时仍然不行 提示 No module named Pillow
    feather12315
        8
    feather12315  
       Mar 15, 2016 via Android
    $which pip
    $which python
    应该是多版本问题
    julyclyde
        9
    julyclyde  
       Mar 15, 2016
    2 不可能
    jimzhong
        10
    jimzhong  
       Mar 15, 2016
    @crayygy venv 是个好方法,或者说你用 pip2 或者 pip3 指定版本。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1404 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 17:04 · PVG 01:04 · LAX 10:04 · JFK 13:04
    ♥ Do have faith in what you're doing.