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

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

lonely4年前 (2021-01-20)Python1092

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

分享给朋友:

相关文章

python-selenium设置webdriver隐藏浏览器运行及不加载图片

python-selenium设置webdriver隐藏浏览器运行及不加载图片

from selenium import webdriver # 设置无界面 opt = webdriver.ChromeOpt...

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

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

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

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

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

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

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二、安装下载后双击安装包安装,可以一直下一步默认...

PyQt5安装

PyQt5安装

下面直接使用pip来安装PyQt5,此处可能是pip/pip3,或者两者皆可,后面不再重复直接pip安装PyQt5pip install PyQt5由于Qt Designer已经在...

发表评论

访客

看不清,换一张

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