我在将 Skype4Py 连接到我的 Skype 客户端时遇到问题。我下载了 easy _install 并用它来安装 Skype4Py。我有 64 位 Python 和 windows 7。当我使用 IDLE 逐行尝试示例脚本(如下所示)时,我无法通过 skype.attach()
,似乎什么也没有发生。我最终不得不关闭 IDLE 并终止应用程序。如果您有任何想法请告诉我。我提前道歉。仅仅弄清楚如何下载 Skype4Py 对我来说就是一个挑战。 Skype 正在运行并且我已登录。
import Skype4Py
# Create an instance of the Skype class.
skype = Skype4Py.Skype()
# Connect the Skype object to the Skype client.
skype.Attach()
# Obtain some information from the client and print it out.
print 'Your full name:', skype.CurrentUser.FullName
print 'Your contacts:'
for user in skype.Friends:
print ' ', user.FullName
最佳答案
目前看起来不支持 64 位 Python,因为 Skype 客户端应用程序是 32 位。
https://github.com/awahlig/skype4py/issues/6
使用 32 位 Python。
关于python - Skype4py 连接不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14778361/