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

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

lonely4年前 (2021-01-20)Python696

使用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使用国内镜像源安装更新模块

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

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

python获取昨天的日期

python获取昨天的日期

import datetime def getYesterday():     today = datetime.d...

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

SQLAlchemy中使用sqlacodegen自动同步数据库中表生成model

SQLAlchemy中使用sqlacodegen自动同步数据库中表生成model

前言如果数据库中的表已经存在了,我们只想通过 SQLAlchemy 操作数据库表的数据,不需要建表。这时可以不用一个个声明每个字段类型,可以用第三方包 sqlacodegen 自动...

发表评论

访客

看不清,换一张

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