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

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

lonely3年前 (2021-01-20)Python596

使用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

分享给朋友:

相关文章

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

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

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

详解python的xlwings库读写excel操作总结

详解python的xlwings库读写excel操作总结

 一、总结一句话总结:xlwings 是 Python 中操作Excel的一个第三方库,支持.xls读写,.xlsx读写,操作非常简单,功能也很强大1、xlwings 中的逻辑:应用->...

Python pip更换安装源

Python pip更换安装源

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

windows更换conda源

windows更换conda源

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

windows中配置conda环境变量

windows中配置conda环境变量

一、下载(根据自己的电脑系统下载对应的安装包)官方下载地址:https://www.anaconda.com/products/distribution二、安装下载后双击安装包安装,可以一直下一步默认...

发表评论

访客

看不清,换一张

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