我在 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.
有人遇到过同样的错误吗~~或者有什么好的解决思路,感激不尽
1
billlee 2017-04-01 19:51:32 +08:00 1
别打包,把解释器和依赖库带上,入口程序设置好环境变量可以运行得很好
|
2
izoabr 2017-04-01 20:30:30 +08:00 1
requests 以来 SSL 吧,看看是不是少证书
|