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
getlost
V2EX  ›  Python

python 安装第三方库出问题

  •  
  •   getlost · 2016-09-07 10:50:08 +08:00 · 2312 次点击
    这是一个创建于 2780 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不知道问题在哪,请大神帮忙看看,以前安装都没有这个问题,今天安出问题了,我把 python 卸载了重装还是这样。 我在 cmd 使用 easy_install 装 pillow 但是出现“ c:\User\Administrator\easy_install.exe 不是有效的 win32 应用程序”错误,这该怎么解决???

    13 条回复    2016-09-08 22:28:55 +08:00
    Jblue
        1
    Jblue  
       2016-09-07 10:51:55 +08:00
    看下 python 和 pillow 版本
    getlost
        2
    getlost  
    OP
       2016-09-07 10:57:52 +08:00
    @Jblue python 3.5.1 , pillow 不知道啊,不是输入命令后程序自己上网下载吗?
    imn1
        3
    imn1  
       2016-09-07 11:03:06 +08:00
    windows 还是直接找 exe 装的好
    http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow

    另外, easy_install.exe 为何在这个路径?这不对吧?
    getlost
        4
    getlost  
    OP
       2016-09-07 11:14:56 +08:00
    @imn1 谢谢, pip 能用
    wyntergreg
        5
    wyntergreg  
       2016-09-07 11:24:40 +08:00
    权限问题
    getlost
        6
    getlost  
    OP
       2016-09-07 11:35:27 +08:00
    @imn1 又出问题了,没安上, valueError:zlib is required unless explictly disabled using ,是需要安装 zlib 吗?
    getlost
        7
    getlost  
    OP
       2016-09-07 11:35:49 +08:00
    @wyntergreg 什么意思,怎么弄啊
    wyntergreg
        8
    wyntergreg  
       2016-09-07 11:39:16 +08:00
    @getlost win8 和 win10 的 C 盘权限很操蛋,装东西尽量别装 C 盘
    getlost
        9
    getlost  
    OP
       2016-09-07 11:47:03 +08:00
    @wyntergreg 我是 win7 的, python 装在 f 盘
    ruanimal
        10
    ruanimal  
       2016-09-07 12:38:37 +08:00
    为何不用 pip 。
    windows 的 pillow 用 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow
    TimePPT
        11
    TimePPT  
       2016-09-07 12:56:35 +08:00 via iPhone   ❤️ 1
    大兄弟,听我一句劝,如果你的开发及产品并依赖 Windows 环境,就虚拟机装个 Linux 发行版吧,折腾这些装的上装不上的破事没意义。
    getlost
        12
    getlost  
    OP
       2016-09-08 22:28:29 +08:00
    @ruanimal valueError:zlib is required unless explictly disabled using 用 pip 会出现这个错误
    getlost
        13
    getlost  
    OP
       2016-09-08 22:28:55 +08:00
    @TimePPT 还没用过,我试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1004 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:22 · PVG 06:22 · LAX 15:22 · JFK 18:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.