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
mon6912640
V2EX  ?  Python

tinypng 接口模块 tinify 打包 exe 后连不上网络的问题

  •  
  •   mon6912640 · 2019-05-17 22:16:49 +08:00 · 1835 次点击
    这是一个创建于 1823 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近用 tinypng 提供的 python 模块 tinify 写了个在线压缩图片的程序,正常 python 环境调用脚本运行是没有问题,但是打包成 exe 后,调用接口就直接抛出 ConnectionError 错误,死活连不上

    cx_freeze、pyinstaller 打包 exe 都试过了,还是同样的问题

    google、baidu、bing 了好久,还没找到解决方案,有没有遇到过相同问题的,求指导
    1 条回复  ?  2019-05-17 22:48:50 +08:00
    thedrwu
        1
    thedrwu  
       2019-05-17 22:48:50 +08:00 via Android
    嗯?难道只有我的 tinypng 是要坐飞机的?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5109 人在线   最高记录 6547   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 01:06 · PVG 09:06 · LAX 18:06 · JFK 21:06
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com