【问题标题】:Error running python 2.7.3.1 on windows 7在 Windows 7 上运行 python 2.7.3.1 时出错
【发布时间】:2014-03-05 16:09:22
【问题描述】:

我已经在我的笔记本电脑上安装了 Python 2.7.3.1(装有 Windows 7)。但是,当我尝试运行它时,出现以下错误:

'windows 无法访问指定的设备、路径或文件。您可能没有适当的权限来访问它们。'

我已将所有文件夹的权限更改为完全控制。我仍然得到错误。我在 Windows 7 64 位机器上运行。

我以管理员身份运行程序并得到相同的结果。

任何人都可以提出解决这个问题的方法吗?

Edit1: 当我浏览 Python 的“脚本”文件时,我发现了一个名为“spyder”的文件,它是一个 Windows 批处理文件。以管理员身份打开此文件时,spyder 确实运行正常。但是,当我从开始菜单打开蜘蛛时,它给了我上面提到的错误。知道为什么会这样吗?

Edit2: 这是Path环境变量(因为太长,我无法在cmets中添加它):

C:\Python27\Lib\site-packages\PyQt4;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c :\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\ Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64 ;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel( R) 管理引擎组件\DAL;C:\Program Files (x86)\Intel\Intel(R) 管理引擎组件\IPT;C:\Program Files\Sony\VAIO Improvement\;C:\Program Files (x86)\ Sony\VAIO 启动设置工具;C:\Program Files (x86)\Windows Live\Shared;C:\Users\vaishali\AppData\Local\Smartbar\Application\;C:\Users\vaishali\AppData\Local\Smartbar\应用程序\;C:\Python27;C:\Python27\DLLs;C:\Pyth on27\Scripts;C:\Python27\Lib\site-packages\vtk;C:\Python27\gnuplot\binary;C:\Python27\Lib\site-packages\osgeo;C:\Program Files (x86)\pythonxy\ SciTE-3.2.2-1;C:\Program Files (x86)\pythonxy\console;C:\MinGW32-xy\bin;C:\Program Files (x86)\pythonxy\swig;C:\Program Files (x86 )\pythonxy\gettext\bin

【问题讨论】:

  • 你检查Path环境变量了吗?
  • 你确定安装了python 64位吗?
  • @SAM,我究竟应该在 Path 环境变量中寻找什么?我知道如何访问它,但我不太确定需要进行哪些修改。
  • @Madhu,我检查了python的版本,结果是32位;之后我在网上搜索了 64 位版本的 python,但没有任何不同的版本可用于 32 位和 64 位计算机。
  • 你到底安装了什么 Python?来自 python.org 或其他版本?

标签: python-2.7 windows-7-x64


【解决方案1】:

试试看:

http://support.microsoft.com/kb/2669244

由于您提到已经更改了您的权限,因此特别相关的步骤是

方法 2:检查以确保文件位置可用

方法3:确保文件没有被移动或删除

方法 4:重新创建检查损坏的快捷方式

方法五:查看文件是否被Windows屏蔽

方法 5 是我建议首先执行的方法,因为这似乎是导致您无法运行最初拥有的可执行文件的更常见原因之一从网上下载的。

【讨论】:

  • 感谢您的及时回复。
  • 我已经尝试了所有五种方法,但问题仍然存在。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-04-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-07-11
相关资源
最近更新 更多