leetao94
V2EX  ›  问与答

关于 pyqt 程序的打包

  •  
  •   leetao94 · Apr 1, 2017 · 2042 views
    This topic created in 3336 days ago, the information mentioned may be changed or developed.

    我在 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 replies    2017-04-01 20:30:30 +08:00
    billlee
        1
    billlee  
       Apr 1, 2017   ❤️ 1
    别打包,把解释器和依赖库带上,入口程序设置好环境变量可以运行得很好
    izoabr
        2
    izoabr  
       Apr 1, 2017   ❤️ 1
    requests 以来 SSL 吧,看看是不是少证书
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3054 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 14:39 · PVG 22:39 · LAX 07:39 · JFK 10:39
    ♥ Do have faith in what you're doing.