pytest安装失败报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。

1.安装命令:
pip install pytest
pytest安装失败报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。_第1张图片
发现报错:根据提示换命令
pip install --user pytest
pytest安装失败报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。_第2张图片
检查安装是否成功
pip show pytest
pytest安装失败报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。_第3张图片

你可能感兴趣的:(python)