当前位置:首页 > Python > 正文内容

locustio安装失败,提示: ERROR: Command errored out with exit status 1:

lonely3年前 (2021-01-20)Python584

使用pip install locustio 和 pip install -i https://pypi.douban.com/simple locustio 安装时均失败,提示:


C:\Users\Admin>pip install -i https://pypi.douban.com/simple locustio

Looking in indexes: https://pypi.douban.com/simple

Collecting locustio

  Using cached https://pypi.doubanio.com/packages/bd/50/c4bafccbb1dd66a1968f3f6d96933889b338475f4a8e45a7785f7f275fc5/locustio-0.999.tar.gz (267 kB)

Using legacy 'setup.py install' for locustio, since package 'wheel' is not installed.

Installing collected packages: locustio

    Running setup.py install for locustio ... error

    ERROR: Command errored out with exit status 1:

     command: 'c:\users\admin\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-h2ph4fhz\\locustio_9b3df2ab9a1843b8b0a2aff76605c5e9\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-h2ph4fhz\\locustio_9b3df2ab9a1843b8b0a2aff76605c5e9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-fmkjx2df\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python38\Include\locustio'

         cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-h2ph4fhz\locustio_9b3df2ab9a1843b8b0a2aff76605c5e9\

    Complete output (4 lines):

    running install


    **** Locust package has moved from 'locustio' to 'locust'. Please update your reference (or pin your version to 0.14.6 if you dont want to update to 1.0) ****


    ----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-h2ph4fhz\\locustio_9b3df2ab9a1843b8b0a2aff76605c5e9\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-h2ph4fhz\\locustio_9b3df2ab9a1843b8b0a2aff76605c5e9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-fmkjx2df\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python38\Include\locustio' Check the logs for full command output.


image.png


解决办法:

pip install -U setuptools
pip install -U --pre locustio

较验:

locust -V

image.png

扫描二维码推送至手机访问。

版权声明:本文由复制者发布,如需转载请注明出处。

本文链接:https://www.copyer.cn/post/8.html

分享给朋友:

相关文章

Robot Framework安装教程

Robot Framework安装教程

    Robot Framework是一个基于Python的,可扩展的关键字驱动的测试自动化框架,用于端到端验收测试和验收测试驱动开发(ATDD)。它可用于测试分布式异...

返回当前时间及格式化已使用时间

返回当前时间及格式化已使用时间

import time import datetime # 格式化输出使用时间 class Farmat_time():   &...

python使用国内镜像源安装更新模块

python使用国内镜像源安装更新模块

由于python更新源速度较慢,且经常更新失败。国内更新源可秒更,以下是配置方法。1、python2.7更新pip命令1python -m pip install --upgrad...

Python pip更换安装源

Python pip更换安装源

常见的镜像源:华为:https://repo.huaweicloud.com/repository/pypi/simple 清华:https://pypi.tuna.tsinghua.edu...

推荐一个好用的Python第三方日志库loguru

推荐一个好用的Python第三方日志库loguru

        Loguru: 更优雅的日志记录解决方案loguru 是一个 Python 简易且强大的第三方日志记录库...

windows更换conda源

windows更换conda源

使用清华源一、cmd中执行conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/an...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。