我用PDFTeXify编译,eps图片不能转成pdf,错误提示为:
Error: Input filename 'uu.eps' not allowed in restricted mode.
D:\texlive\2023\bin\windows\runscript.tlu:921: command failed with exit code 2:
perl.exe d:\texlive\2023\texmf-dist\scripts\epstopdf\epstopdf.pl --restricted "--outfile=uu-eps-converted-to.pdf" "uu.eps"
! Package pdftex.def Error: File `uu-eps-converted-to.pdf' not found: using draft setting.使用了宏包:
\usepackage{epstopdf}
\usepackage{graphicx}
\usepackage{epsfig}
本人在windows11 professional的TeXLive2024编译
当我使用xelatex mwe编译时,顺利执行:
当我使用pdflatex mwe时,由于其默认会使用epstopdf程序,此时可见左侧目录出现了uu.eps对应的.pdf文件,同样可以顺利执行,无需使用-shell-escape选项:

但OsbertWang @u40在聊天记录中也指出过在编辑器中使用有可能需要打开-shell-escape选项,同时我也曾在交流群中看到过使用TeXLive2023插入.eps图片提示epstopdf编译出错的情况,但由于我没有TeXLive2023环境,无法进行测试。
请你补充你的TeXLive版本,并且最好花点时间学习一下markdown语法以美化你的问题。另附有关不同引擎插入图片的简单介绍:

学会规范提问是更快解决你问题的必经之路, Happy TeXing!