找到Python的第三方包安装路径,在dos命令行中切换到该目录,输入: pip install redis 最后在Python解释器中即可。 转载于:https://www.cnblogs.com/zoe233/p/7375603.html