使用wxpy这个基于python实现的微信工具库的一些常见问题

使用以下的命令行安装:python

pip install wxpy微信

clipboard1,1

Collecting wxpy
Downloading https://files.pythonhosted.or...
c4561551489f36/wxpy-0.3.9.8.tar.gz (45kB)app

100% | 51kB 98kB/s

Collecting itchat==1.2.32 (from wxpy)
Downloading https://files.pythonhosted.or...
3fec62ed7bb343/itchat-1.2.32-py2.py3-none-any.whl
Requirement already satisfied: requests in c:myapppy20180816
Requirement already satisfied: future in c:myapppy20180816l
om wxpy) (0.16.0)
Collecting pyqrcode (from itchat==1.2.32->wxpy)
Downloading https://files.pythonhosted.or...
884ac68d979316/PyQRCode-1.2.1.tar.gz
Collecting pypng (from itchat==1.2.32->wxpy)
Downloading https://files.pythonhosted.or...
017663467f5147/pypng-0.0.20.tar.gz (649kB) ui

Requirement already satisfied: certifi>=2017.4.17 in c:myapp\url

wxpy) (2018.8.13)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:mya
ts->wxpy) (3.0.4)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in c:mya
ts->wxpy) (1.23)

clipboard2,2

在python文件wechat.py里使用这个库的时候,若是遇到以下的错误消息:ModuleNotFoundError: No module named PILspa

clipboard3,3

解决方法是安装pillow这个库:命令行

pip install pillow3d

clipboard4,4

若是遇到下面这个超时的错误:code

Retrying (Retry(total-1, connect=None, read=None, redirect=None, status-None)) aftery 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out./simple/pillow/blog

clipboard5,5

能够使用国内镜像代替:

clipboard6,6

由于wxpy这个库背后其实使用的是微信网页版的功能,因此若是你的python程序在使用wxpy不能正常工做时,先检查你的微信帐号是否可以成功登陆微信网页版,若是遇到下列这种提示,说明你的微信帐号没法使用wxpy库。

clipboard7,7

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
公众号截图

相关文章
相关标签/搜索