Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report