首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >locust没有在windows 10上安装负载测试。

locust没有在windows 10上安装负载测试。
EN

Stack Overflow用户
提问于 2020-05-04 12:17:53
回答 2查看 3.6K关注 0票数 0

我试着安装这个pip,但是遇到了一些错误,我想要这个包模块来进行负载测试--这是我得到的输出:

代码语言:javascript
复制
Collecting locustio
Collecting geventhttpclient-wheels==1.3.1.dev2 (from locustio)
  Using cached https://files.pythonhosted.org/packages/bc/7f/42f8b4ac6c7ddf606fa69769cef2229a159d4af45a294053198f52586095/geventhttpclient-wheels-1.3.1.dev2.tar.gz

Requirement already satisfied: six in c:\users\saurabh\appdata\local\programs\python\python38\lib\site-packages (from geventhttpclient-wheels==1.3.1.dev2->locustio) (1.14.0)
Requirement already satisfied: pycparser in c:\users\saurabh\appdata\local\programs\python\python38\lib\site-packages (from cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"->gevent==20.4.0->locustio) (2.20)

  Running setup.py install for geventhttpclient-wheels: started
    Running setup.py install for geventhttpclient-wheels: finished with status 'error'

    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\SauraBh\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SauraBh\\AppData\\Local\\Temp\\pycharm-packaging\\geventhttpclient-wheels\\setup.py'"'"'; __file__='"'"'C:\\Users\\SauraBh\\AppData\\Local\\Temp\\pycharm-packaging\\geventhttpclient-wheels\\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\SauraBh\AppData\Local\Temp\pip-record-ipuoqz4r\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\SauraBh\AppData\Local\Temp\pycharm-packaging\geventhttpclient-wheels\
    Complete output (45 lines):
    C:\Users\SauraBh\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\dist.py:471: UserWarning: Normalizing '1.3.1dev2' to '1.3.1.dev2'
      warnings.warn(
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\geventhttpclient
    copying src\geventhttpclient\client.py -> build\lib.win-amd64-3.8\geventhttpclient
    copying src\geventhttpclient\connectionpool.py -> build\lib.win-amd64-3.8\geventhttpclient
    copying src\geventhttpclient\header.py -> build\lib.win-amd64-3.8\geventhttpclient
    copying src\geventhttpclient\httplib.py -> build\lib.win-amd64-3.8\geventhttpclient
    copying src\geventhttpclient\response.py -> build\lib.win-amd64-3.8\geventhttpclient
    copying src\geventhttpclient\url.py -> build\lib.win-amd64-3.8\geventhttpclient
    copying src\geventhttpclient\useragent.py -> build\lib.win-amd64-3.8\geventhttpclient
    copying src\geventhttpclient\__init__.py -> build\lib.win-amd64-3.8\geventhttpclient
    running egg_info
    writing src\geventhttpclient_wheels.egg-info\PKG-INFO
    writing dependency_links to src\geventhttpclient_wheels.egg-info\dependency_links.txt
    writing requirements to src\geventhttpclient_wheels.egg-info\requires.txt
    writing top-level names to src\geventhttpclient_wheels.egg-info\top_level.txt
    reading manifest file 'src\geventhttpclient_wheels.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files matching '*.py[co]' found anywhere in distribution
    writing manifest file 'src\geventhttpclient_wheels.egg-info\SOURCES.txt'
    creating build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\oncert.pem -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\server.crt -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\server.key -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_client.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_headers.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_httplib.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_keep_alive.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_network_failures.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_no_module_ssl.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_parser.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_ssl.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_url.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    copying src\geventhttpclient\tests\test_useragent.py -> build\lib.win-amd64-3.8\geventhttpclient\tests
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building 'geventhttpclient._parser' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\SauraBh\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SauraBh\\AppData\\Local\\Temp\\pycharm-packaging\\geventhttpclient-wheels\\setup.py'"'"'; __file__='"'"'C:\\Users\\SauraBh\\AppData\\Local\\Temp\\pycharm-packaging\\geventhttpclient-wheels\\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\SauraBh\AppData\Local\Temp\pip-record-ipuoqz4r\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

我已经在我的系统中安装了MicrosoftVisualC++ 14.0.25。如果有人知道更好的使用python测试api的工具/框架/包,请帮助我。我想一次和许多用户一起检查注册api。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-05-04 12:34:32

如果Dmitri的建议没有帮助的话,您可以尝试如下:

代码语言:javascript
复制
pip install -U setuptools

以及最新蝗虫的最新情况:

代码语言:javascript
复制
pip install -U locust

(编辑:蝗虫包名现在是“蝗虫”,而不是“locustio”)

票数 2
EN

Stack Overflow用户

发布于 2020-05-04 12:34:00

您需要的不是Visual,而是可视化C++构建工具

您可以使用Visual安装程序安装它,只需在C++组件下面的相关框中勾选:

您也可能对如何与不同用户一起运行蝗虫的文章感兴趣

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61592069

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档