我在 Windows 上使用 Skype4Py 和 Python 3.2.3。 尝试导入 Skype4Py 包时出现错误,我执行了以下操作以弄清楚它是什么:
import sys
try:
import Skype4Py
except:
print (sys.exc_info()[0])
print (sys.exc_info()[1])
输出如下:
<class 'Import error'>
No module named skype
我使用 Windows 安装程序安装了 Skype4Py。我可以在 Python32\Lib\site-packages
中看到 Skype4Py .我如何让它发挥作用?
最佳答案
在Skype Dev Page中明确说明那:
The Python wrapper is compatible and is tested with Python version 2.6.5 - Python versions 3.x are not supported at this time.
猜猜它的运气不好,
我认为 Skype 开发人员已经放弃了 SkypeKit Python Wrapper Reference 因为缺少 ...
但是
您可以在 Github 找到独立维护的 skype4py 版本虽然它也只适用于 python 2.x 版本,但它会定期更新,并且它拥有比 skype 维护的项目大得多的社区,该项目几乎已经死亡,并且还支持最新的 2.x 版本,而不仅仅是支持 2.6.5。在这里你可以找到使用 github 维护版本的 skype4py 的文档 Skype4py usage
关于python - 无法在 Python 中导入 Skype4Py,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12287050/