简体   繁体   English

使用pyinstaller在exe目录中保存df时pandas df to_csv冻结

[英]pandas df to_csv freezes when using pyinstaller to save the df in the exe directory

I am trying to save the output dataframe to a csv file while using pyinstaller to create an exe, but my code freezes and generate "[Errno 13] Permission denied: '.\\Output.csv' " error.我试图在使用 pyinstaller 创建 exe 时将输出数据帧保存到 csv 文件,但我的代码冻结并生成“[Errno 13] Permission denied: '.\\Output.csv'”错误。 My question is.我的问题是。 what wrong using df.to_csv to save the output file in the same exe directory ?使用 df.to_csv 将输出文件保存在同一个 exe 目录中有什么错误?

Thanks in adcance提前致谢

Look, if you use Innodb compiler then you will face a problem of permission denied error in the setup.看,如果您使用 Innodb 编译器,那么您将在设置中面临权限被拒绝错误的问题。 So , I have tried to solve that by using temporary file but It is getting deleted after generation.所以,我试图通过使用临时文件来解决这个问题,但它在生成后被删除了。 But if you really want to solve this problem then use xlsxwriter and save it to a specific file location.但是如果你真的想解决这个问题,那么使用 xlsxwriter 并将其保存到特定的文件位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM