作者MOONY135 (谈无慾)
看板Python
标题[问题] pyinstaller打包SpeechRecognition问题
时间Tue Nov 14 14:02:51 2017
大家好 我写了一个用google语音辨识的程式
现在想打包成安装包
使用的是pyinstaller
打包指令为
pyinstaller -F py_speech_rec.py
打包好的东西在我开发机上面可以run
但丢到没有装python的测试机上 出现下列文字
https://imgur.com/a/cjPJf
查了一下文件说只要update pyinstaller就好
https://pypi.python.org/pypi/SpeechRecognition/
The program doesn’t run when compiled with PyInstaller.
As of PyInstaller version 3.0, SpeechRecognition is supported out of the box.
If you’re getting weird issues when compiling your program using
PyInstaller, simply update PyInstaller.
You can easily do this by running pip install --upgrade pyinstaller.
更新也更新过了
但打包完还是出现上图的状况
不知道缺少甚麽
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 59.124.46.82
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1510639375.A.377.html
1F:推 marksmanz: 有试过 --onefile 吗 ? 11/14 22:10
2F:→ MOONY135: 我明天试试看 11/15 22:43