pad*_*009 29 python windows tkinter
我正在使用python 2.7.2和Windows 7.我搜索了互联网,帮助和其他来源,但我找不到我的问题的答案.
我的一个源导入tkinter,这个导入_tkinter.这时它说ImportError DLL load failed:
Traceback (most recent call last): File "NERO/show_image.py", line 13,
in <module> import Tkinter File "C:\Python27\lib\lib-tk\Tkinter.py", line 38,
in <module> import FixTk File "C:\Python27\lib\lib-tk\FixTk.py", line 65,
in <module> import _tkinter ImportError: DLL load failed: %1 is not a valid Win32 application.
2012-Jan-04 12:27:21.889374 (M) [python] Finished process
Run Code Online (Sandbox Code Playgroud)
我搜索了_tkinter,我发现它在Python27/libs中作为lib文件.
在许多网站上它说安装tk/tcl或tkinter,但我找不到单独的Windows安装.
使用http://www.python.org/getit/releases/2.7/中的 Windows x86 MSI安装程序(2.7).在Windows 7 64位.python版本是32位.
Dav*_*cka 25
我在Windows 7 64位上导入Tkinter时遇到了类似的问题 - 似乎64位库仍然在以前的64位python安装的libs文件夹中.
正确卸载64位python然后使用32位安装程序进行修复为我解决了问题 - 您不需要使用64位python.
重新安装Python.
如果这仍然不起作用,还有另一个简单的解决方案:
Python27完全从C:驱动器中删除文件夹.小智 3
我在尝试在简单的应用程序中使用 matplotlib 时遇到此错误。
卸载 Python 并从 C 驱动器中删除其文件夹。下载并安装 64 位 python。按照此步骤在您的计算机上安装 pip。 http://www1.cmc.edu/pages/faculty/alee/cs40/penv/installFlaskOnWindows.html 这终于对我有用了
| 归档时间: |
|
| 查看次数: |
50384 次 |
| 最近记录: |