python pip安装smtplib库的方法

前言

自己在安装的时候也踩了很多的坑,所以写一篇博文记录一些方法,分享

开始

首先是:pip search smtplib

然后会出现很多的可供选择的库,按照需要下载就好了,如下方

PyEmail (0.0.1)              - Python library to send emails using SMTPLIB library
micropython-smtplib (0.0.0)  - Dummy smtplib module for MicroPython
personal (0.1.1)             - Easy, secure self notification via email and sms, using smtplib and twilio
aiosmtplib (0.1.4)           - asyncio version of smtplib
secure-smtplib (0.1.1)       - Secure SMTP subclasses for Python 2
mailclient (0.2.0)           - Simplified use of smtplib for Python. Easy email sending.
smtplibaio (1.0.3)           - An async version of smtplib
easyemail (0.4.0)            - Simple lib abstracting email sending with smtplib.

这里一般用PyEmail,所以直接pip install PyEmail 就行 ,然后在import smtplib

结束

其实还是很简单的

你可能感兴趣的:(python pip安装smtplib库的方法)