V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · May 17, 2019 · 2868 views
    This topic created in 2540 days ago, the information mentioned may be changed or developed.
    最近用 tinypng 提供的 python 模块 tinify 写了个在线压缩图片的程序,正常 python 环境调用脚本运行是没有问题,但是打包成 exe 后,调用接口就直接抛出 ConnectionError 错误,死活连不上

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

    google、baidu、bing 了好久,还没找到解决方案,有没有遇到过相同问题的,求指导
    1 replies    2019-05-17 22:48:50 +08:00
    thedrwu
        1
    thedrwu  
       May 17, 2019 via Android
    嗯?难道只有我的 tinypng 是要坐飞机的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2702 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 13:18 · PVG 21:18 · LAX 06:18 · JFK 09:18
    ♥ Do have faith in what you're doing.