1. 安装, python3 安装好后,在cmd中运行 pip install robotframework
# Install the latest version (does not upgrade) pip install robotframework # Upgrade to the latest version pip install --upgrade robotframework # Install a specific version pip install robotframework==2.9.2 # Install separately downloaded package (no network connection needed) pip install robotframework-3.0.tar.gz # Install latest (possibly unreleased) code directly from GitHub pip install https://github.com/robotframework/robotframework/archive/master.zip # Uninstall pip uninstall robotframework
2. 验证安装是否成功
$ robot --version Robot Framework 3.0 (Python 2.7.10 on linux2) $ rebot --version Rebot 3.0 (Python 2.7.10 on linux2)
3. 安装成功后,robotframework代码所在位置,在python或者虚拟环境的Lib/site-packages目录下。
如D:PythonPythonVenvautoVenvLibsite-packages
4. 卸载
pip uninstall robotframework
5. 升级,使用pip升级时,安装前会自动卸载老版本。
# Upgrade to the latest stable version. This is the most common method. pip install --upgrade robotframework # Upgrade to the latest version even if it would be a preview release. pip install --upgrade --pre robotframework # Upgrade to the specified version. pip install robotframework==2.9.2