首页 新闻 会员 周边

pyinstaller 打包程序

0
悬赏园豆:100 [待解决问题]
import redis, datetime
print datetime.datetime.today().strftime('%Y-%m-%d')
通过pyinstaller -F 打包成exe时,命令行总提示
WARNING: Attempted to add Python module twice with different upper/lowercases: Queue,运行exe提示redis 里的_compat.py no module named Queue.
import redis, datetime
from elasticsearch import Elasticsearch
print datetime.datetime.today().strftime('%Y-%m-%d')
但是加上
from elasticsearch import Elasticsearch 也不会有警告,并且exe 也能正常运行。很是奇怪。有高手解释下原因么
tyb1222的主页 tyb1222 | 菜鸟二级 | 园豆:259
提问于:2016-10-17 18:38
< >
分享
所有回答(1)
0

没用过elasticsearch,不过按照提示及语法来看,应该是elasticsearch中提供了Queue模块。

jongwy | 园豆:202 (菜鸟二级) | 2016-10-26 21:41
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册