python环境下安装miniconda
rpaframe是一个开源框架,是基于python环境的,官网上示例是基于conda的,所以先安装miniconda,脚本如下:
#!/bin/bash
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
~/miniconda3/bin/conda init
source ~/.bashrc
conda --version
conda环境下安装rpaframework
使用conda可以方便在一台电脑上管理和切换多个python环境,提高效率。
#!/bin/bash
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda env create -f conda.yaml -n rpa_env
conda activate rpa_env
rfbrowser init
pip show robotframework-browser
pip show rpaframework
python --version
node --version
脚本中的conda.yaml文件如下:
channels:
- conda-forge
dependencies:
- python=3.10.14
- nodejs=22.9.0
- pip=24.0
- tesseract=5.4.1
- pip:
- robotframework-browser==18.8.1
- rpaframework==28.6.3
- rpaframework-recognition==5.2.5