指定 -p 参数为 [指定路径]
发布时间
阅读量:
阅读量
在使用pyinstaller进行程序封装时,遇到了一些异常情况,例如无法执行脚本等问题,通过查阅pyinstaller相关目录中的文件(具体路径如下),最终定位到了名为warn-myfile.txt的提示文件。
C:\python27\Scripts\pyinstaller\myfile\build\myfile
查阅warn文件后,发现存在部分第三方库缺失的情况,因此通过添加-p参数的方式将相应的第三方库路径纳入系统中。

参数p的使用方式如下:
pyinstaller -F -p C:\python27\lib\site-packages\pyinstaller-3.5.dev0+5edb4f7de-
所得结论如下呈现:
C:\python27\Scripts\pyinstaller>pyinstaller -F -p C:\python27\lib\site-packages\pyinstaller-3.
全部评论 (0)
还没有任何评论哟~
