V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
leetao94
V2EX  ›  问与答

关于 pyqt 程序的打包

  •  
  •   leetao94 · 2017-04-01 17:20:38 +08:00 · 1666 次点击
    这是一个创建于 2597 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在 pyqt4 的项目中使用了 itchat 这个库,程序完成后使用 py2exe 进行打包,然而打包的成 exe 程序运行的时候出现下列错误:

    Traceback (most recent call last):
      File "itchat\utils.pyo", line 123, in test_connect
      File "requests\api.pyo", line 71, in get
      File "requests\api.pyo", line 57, in request
      File "requests\sessions.pyo", line 475, in request
      File "requests\sessions.pyo", line 585, in send
      File "requests\adapters.pyo", line 477, in send
    SSLError: [Errno 2] No such file or directory
    
    You can't get access to internet or wechat domain, so exit.
    

    有人遇到过同样的错误吗~~或者有什么好的解决思路,感激不尽

    2 条回复    2017-04-01 20:30:30 +08:00
    billlee
        1
    billlee  
       2017-04-01 19:51:32 +08:00   ❤️ 1
    别打包,把解释器和依赖库带上,入口程序设置好环境变量可以运行得很好
    izoabr
        2
    izoabr  
       2017-04-01 20:30:30 +08:00   ❤️ 1
    requests 以来 SSL 吧,看看是不是少证书
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   963 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:08 · PVG 06:08 · LAX 15:08 · JFK 18:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.