- 【运行环境】win10
- 【安装】python37、pip、httprunner
一、 安装python37
1. 下载安装包
https://www.python.org/downloads/release/python-377/

2. 安装
参考https://blog.csdn.net/nmjuzi/article/details/79075736
勾选Add Python 3.7 to PATH
点选Cunstomize installation
Optional Features:全选
Advanced Options:勾选Install for all users
再一路next...



3. 验证是否安装成功
打开cmd,输入python
二、 安装pip
打开cmd,输入
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
(使用国内pip源安装)
(python -m pip install --upgrade pip是使用国外pip源,容易超时导致安装失败)

三、 安装httprunner
1. 打开cmd,输入
pip install httprunner -i https://pypi.douban.com/simple


2. 检查是否安装成功:hrun -V 或 hrun --version

网友评论