admin管理员组文章数量:1389754
I found that simply importing pandas
prevents files from being opened by the OS. By opening I mean that I want a Windows window to open and display an image for me. Instead nothing happens and the script finishes with no errors.
import os
import pandas # works fine without this line
os.startfile("img.png") # windows-only way to open
I found this when using graphviz
to render a graph to an image and open it after. graphviz
uses os.startfile
under the hood. What could pandas be doing here?
python: 3.12.9
pandas: 2.2.3
本文标签: pythonosstartfile() stops working when pandas is importedStack Overflow
版权声明:本文标题:python - os.startfile() stops working when pandas is imported - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744738456a2622470.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论