Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python-现有文件的FileNotFoundError_Python_Python 3.x_Windows 10_File Not Found - Fatal编程技术网

Python-现有文件的FileNotFoundError

Python-现有文件的FileNotFoundError,python,python-3.x,windows-10,file-not-found,Python,Python 3.x,Windows 10,File Not Found,在我的Windows 10计算机上,open为确实存在的文件抛出FileNotFoundError。在Windows 7计算机上找到相同的文件。发生什么事了 问题是在64位机器上使用32位python。Python x64按预期打开文件。32位Python可以作为SysNative访问real System32目录。这是一个虚拟目录,可以避免默认重定向到SysWOW64。

在我的Windows 10计算机上,open为确实存在的文件抛出FileNotFoundError。在Windows 7计算机上找到相同的文件。发生什么事了


问题是在64位机器上使用32位python。Python x64按预期打开文件。

32位Python可以作为SysNative访问real System32目录。这是一个虚拟目录,可以避免默认重定向到SysWOW64。