本文介绍了wxPython中的导入错误:在Anaconda 4.2.0(32bit)中使用python3.5.1在Windows7(64bit OS)上导入wx.animate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Anaconda的python 3.5.1(32bit)在Windows7(64位OS)上进行工作.
我已经安装了用于GUI的wxPython.
我不断收到以下导入错误
ImportError: No module named 'wx.animate'

I am working on Windows7(64 bit OS) with Anaconda's python 3.5.1(32bit).
I have installed wxPython for GUI.
I keep getting the below import error
ImportError: No module named 'wx.animate'

import wx正常工作.
import wx
wx.version()

import wx is working fine.
import wx
wx.version()

给予

'3.0.3.dev2752+8304ec1 msw (phoenix)''

我已经从
安装了wxPython https://wxpython.org/Phoenix/snapshot-builds/

I have installed wxPython from
https://wxpython.org/Phoenix/snapshot-builds/

版本是,
wxPython_Phoenix-3.0.3.dev2752 + 8304ec1-cp35-cp35m-win32.whl

我已经检查了路径,在那儿没发现任何问题..
谁能指导我这出了什么问题?

I have checked the path and don't see any problem there..
Can anyone guide me on where this is going wrong?

谢谢.

推荐答案

以前在wxPython Classic中的wx.animate中的类现在在wxPython Phoenix中的wx.adv中.参见 https://wxpython.org/Phoenix/docs/html/classic_vs_phoenix.html#modules-that-have-moved

The classes formerly in wx.animate in wxPython Classic are now in wx.adv in wxPython Phoenix. See https://wxpython.org/Phoenix/docs/html/classic_vs_phoenix.html#modules-which-have-moved

这篇关于wxPython中的导入错误:在Anaconda 4.2.0(32bit)中使用python3.5.1在Windows7(64bit OS)上导入wx.animate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 06:24