Window如何安装allure

文章介绍了如何在Windows系统中利用scoop这个包管理器来安装allure,包括设置执行权限,自定义安装路径,下载安装scoop,更新scoop以及安装allure服务端。此外,还提到了安装allure的Python包,通过pip命令进行安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

windows 安装需要一个类似 macos brew 的包,就是 scoop ,可以参考 scoop 官网 https://scoop.sh/

安装scope

win+R打开终端,输入PowerShell,打开PowerShell终端

1. PowerShell 中打开远程权限
        Set-ExecutionPolicy RemoteSigned -scope CurrentUser;
2. 自定义 Scoop 安装目录 ( 可以跳过 )
$env:SCOOP='Your_Scoop_Path'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
如果跳过该步骤, Scoop 将默认把所有用户安装的 App Scoop 本身置于 C:\Users\user_name\scoop
3. 下载并安装 Scoop
iwr -useb https://gitee.com/glsnames/scoop-installer/raw/master/bin/install.ps1 | iex
scoop config SCOOP_REPO 'https://gitee.com/glsnames/scoop-installer'
scoop update

安装allure

执行命令 scoop install allure

使用命令 allure --version

只要出现版本号就表示安装成功,后续我们就可以使用了。大家使用上面的命令安装的都是最新的版本。
以上安装的是 allure 的服务端,我们还要安装一下 allure 提供的 python
pip install allure-pytest
As an AI language model, I do not have access to the system environment to check the installation of specific packages or software. However, the error message "allure: command not found" usually indicates that the Allure command-line tool is not installed or not added to the system PATH variable. To fix this issue, you need to install Allure and add it to the system PATH. Here are the general steps to install Allure and add it to the system PATH: 1. Install Allure: Follow the instructions provided in the Allure documentation to download and install Allure on your operating system. 2. Add Allure to the system PATH: Once Allure is installed, you need to add the Allure binary directory to the PATH environment variable. The steps to do this depend on the operating system you are using. Here are the general instructions: - Windows: Open the Start menu and search for "Environment Variables." Click on "Edit the system environment variables" and then click on the "Environment Variables" button. In the "System Variables" section, scroll down and find the "Path" variable. Click on "Edit" and add the path to the Allure binary directory (e.g., C:\allure\bin) to the list of paths. Click "OK" to save the changes. - macOS/Linux: Open the terminal and edit the ~/.bashrc or ~/.bash_profile file (depending on your system configuration). Add the following line to the end of the file: export PATH=$PATH:/path/to/allure/bin Replace "/path/to/allure/bin" with the path to the Allure binary directory. 3. Verify the installation: Open a new terminal window and type "allure --version" to verify that Allure is installed and added to the system PATH. If you still encounter the same error message after following the above steps, please provide more information about your operating system, the installation process you followed, and the exact error message you see.
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值