我收到以下错误:
WindowsError: [Error 2] The system cannot find the file specified我的代码是:
subprocess.call(["<<executable file found in PATH>>"])Windows 7,64位。Python 3.x最新版本,稳定。
有什么想法吗?
谢谢,
发布于 2019-11-01 05:24:30
经过多次挠头之后,我发现运行位于C:\ Windows \System32\中的文件,同时在64位计算机上运行32位版本的python是一个潜在的问题,因为Windows试图智取该进程,并将对C:\Windows\System32的调用重定向到C:\Windows\SysWOW64。
我在这里找到了一个如何解决这个问题的示例:http://code.activestate.com/recipes/578035-disable-file-system-redirector/
https://stackoverflow.com/questions/3022013
复制相似问题