python 微信聊天
D:\untitled\hello.py 入口 web禁止登陆。。
安装命令:
手动安装:
D:\python\setuptools-41.2.0>python setup.py install
下载下来手动安装pip
D:\python\pip-1.4.1\pip-1.4.1>python setup.py install
D:\python\setuptools-41.2.0>python setup.py install
ImportError: No module named future解决方法:
手动安装缺少依赖,sudo pip install future
下载地址:https://pypi.org/simple/itchat/
https://pypi.org/simple/pip/
Python之requests的安装
https://www.cnblogs.com/king8/p/9216133.html
关于ModuleNotFoundError: No module named ‘urllib3‘解决
https://blog.51cto.com/suyanzhu/2313832
https://github.com/urllib3/urllib3
pip list
ImportError: No module named ‘chardet‘ 依赖关系:
解决:依次使用pip安装即可
pip install certifi
pip install chardet
pip install idna
pip install urllib3
setuptools 41.2.0
https://pypi.org/project/setuptools/#files
ez_setup 0.9
https://pypi.org/project/ez_setup/#files
windows操作系统:从https://bootstrap.pypa.io/get-pip.py下载get-pip.py文件,然后使用python运行这个文件python get-pip.py即可。
方法:
网上说是因为网络的问题,要使用国内的镜像源来加速:python get-pip.py -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
解决了,此法似乎同样适用于pip install各种模块时出现的could not find a version问题
https://github.com/littlecodersh/ItChat
pip自动安装:
D:\Python27\Scripts>pip install certifi -i http://pypi.douban.com/simple/
D:\Python27\Scripts>pip install -r requirements.txt
D:\Python27\Scripts>pip list
bl-wxpy (0.6.12)
certifi (2019.9.11)
chardet (3.0.4)
ez-setup (0.9)
future (0.17.1)
idna (2.8)
itchat (1.3.10)
pip (1.4.1)
pypng (0.0.20)
pyqrcode (1.2.1)
requests (2.22.0)
setuptools (41.2.0)
urllib3 (1.25.3)
wxpy (0.3.9.8)
D:\python>python get-pip.py -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
解决Python2.7的UnicodeEncodeError: ‘ascii’ codec can’t encode异常错误
import sys
reload(sys)
sys.setdefaultencoding(‘utf-8‘)
https://wangye.org/blog/archives/629/
删除指定的模块或者包, 在命令提示符cmd下用如下命令:
pip uninstall xxx 如:pip uninstall bl-wxpy
原文地址:https://www.cnblogs.com/jhuangsjtu/p/11523569.html