robotframework在python3.9环境下安装

基于此参考做出的补充:(97条消息) Python3.9环境搭建RobotFramework_牛油菠蘿包的博客-优快云博客_python3.9环境搭建

1、首先换源,可以大大提高install的概率
在每一步pip install后加上-i https://pypi.doubanio.com/simple

pip install [包名] -i https://pypi.doubanio.com/simple

也可自己搜索方式直接永久换成豆瓣源  

2、安装robotframework时,是从GitHub下载ride,由于国内网站不容易从github上下载包

可以选择从gitee的镜像中下载到本

### RobotFramework with Python 3.9 Installation Configuration and Usage #### Installing Required Software Dependencies Before installing Robot Framework, ensure that Python is installed on the system. For a specific version such as Python 3.9, one can use `pyenv` to manage multiple versions of Python easily[^3]. Once Python 3.9 has been set up using pyenv or another method, proceed with setting up pip which comes bundled with Python. #### Setting Up Environment for Development To create an isolated environment specifically tailored for working with Robot Framework under Python 3.9, virtual environments are recommended. This ensures dependencies do not interfere with other projects. ```bash python3.9 -m venv my_robot_env source my_robot_env/bin/activate ``` #### Installing Robot Framework via Pip With the correct Python version active within a virtual environment, install Robot Framework along with its SeleniumLibrary dependency through pip: ```bash pip install robotframework seleniumlibrary ``` This command installs both packages into the current environment ensuring compatibility with Python 3.9[^1]. #### Configuring Test Execution Options For configuring test execution options when running tests written in Robot Framework syntax, refer to the documentation provided by Robot Framework itself rather than generic configure scripts used during compilation processes like those mentioned for Linux installations[^2]. The framework supports various command-line arguments allowing customization without needing manual configuration files editing. #### Running Tests Using Installed Version After completing all previous steps successfully, executing tests becomes straightforward utilizing commands similar to below example where `-d output_directory` specifies results storage location while `testsuite.robot` represents your actual test suite file path: ```bash robot -d output_directory testsuite.robot ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值