python pytest安装失败

1
pip install pytest

报错信息:

ERROR: Could not find a version that satisfies the requirement pytest
ERROR: No matching distribution found for pytest

报错详细信息

解决办法:使用镜像安装

1
pip install pytest -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

使用pip list查看一下,显示安装成功!