Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to analyze the common problems in using wxpy, a python-based Wechat tool library

Shulou Source: shulou.com Published: 2022-06-01 20:28:00 10月03日 Update

This article shows you how to analyze common problems in using wxpy, a Wechat tool library based on python, which is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Use the following command line to install:

Pip install wxpy

Collecting wxpy

Downloading https://files.pythonhosted.org/packages/6b/ac/8f

C4561551489f36/wxpy-0.3.9.8.tar.gz (45kB)

100% | 51kB 98kB/s

Collecting itchat==1.2.32 (from wxpy)

Downloading https://files.pythonhosted.org/packages/61/6d/49

3fec62ed7bb343/itchat-1.2.32-py2.py3-none-any.whl

Requirement already satisfied: requests in c:\ myapp\ py20180816

Requirement already satisfied: future in c:\ myapp\ py20180816\ l

Om wxpy) (0.16.0)

Collecting pyqrcode (from itchat==1.2.32- > wxpy)

Downloading https://files.pythonhosted.org/packages/37/61/f0

884ac68d979316/PyQRCode-1.2.1.tar.gz

Collecting pypng (from itchat==1.2.32- > wxpy)

Downloading https://files.pythonhosted.org/packages/bc/fb/f7

017663467f5147/pypng-0.0.20.tar.gz (649kB)

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

Wxpy) (August 13, 2018)

Requirement already satisfied: chardet=3.0.2 in c:\ mya

Ts- > wxpy) (3.0.4)

Requirement already satisfied: urllib3=1.21.1 in c:\ mya

Ts- > wxpy) (1.23)

If you encounter the following error message when using this library in the python file wechat.py: ModuleNotFoundError: No module named PIL

The workaround is to install the library pillow:

Pip install pillow

If you encounter the following timeout error:

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/

You can use a domestic image instead:

Because wxpy this library is actually behind the use of Wechat web version of the function, so if your python program in the use of wxpy can not work properly, first check whether your Wechat account can successfully log in to the Wechat web version, if you encounter the following prompt, your Wechat account cannot use the wxpy library.

The above is how to analyze the common problems of using wxpy, the Wechat tool library based on python. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Tools common frequently asked questions questions analysis content skills knowledge web pages accounts errors concise success concise functions commands that is files articles methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Information vpn NVidia Microsoft