python - os.startfile() stops working when pandas is imported - Stack Overflow

I found that simply importing pandas prevents files from being opened by the OS. By opening I mean that

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744738456a4590888.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信