python 性能测试 locustio 安装报告0.99 版本


使用pip安装报错

Defaulting to user installation because normal site-packages is not writeable
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/locustio/
Collecting locustio
  Downloading locustio-0.999.tar.gz (267 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 267.6/267.6 kB 71.8 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: locustio
  Building wheel for locustio (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [89 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/locust
      copying locust/exception.py -> build/lib/locust
      copying locust/event.py -> build/lib/locust
      copying locust/web.py -> build/lib/locust
      copying locust/env.py -> build/lib/locust
      copying locust/log.py -> build/lib/locust
      copying locust/__init__.py -> build/lib/locust
      copying locust/stats.py -> build/lib/locust
      copying locust/clients.py -> build/lib/locust
      copying locust/runners.py -> build/lib/locust
      copying locust/main.py -> build/lib/locust
      copying locust/__main__.py -> build/lib/locust
      copying locust/argument_parser.py -> build/lib/locust
      creating build/lib/locust/test
      copying locust/test/test_parser.py -> build/lib/locust/test
      copying locust/test/mock_logging.py -> build/lib/locust/test
      copying locust/test/test_stats.py -> build/lib/locust/test
      copying locust/test/test_wait_time.py -> build/lib/locust/test
      copying locust/test/test_tags.py -> build/lib/locust/test
      copying locust/test/util.py -> build/lib/locust/test
      copying locust/test/test_web.py -> build/lib/locust/test
      copying locust/test/mock_locustfile.py -> build/lib/locust/test
      copying locust/test/__init__.py -> build/lib/locust/test
      copying locust/test/test_old_wait_api.py -> build/lib/locust/test
      copying locust/test/test_util.py -> build/lib/locust/test
      copying locust/test/test_log.py -> build/lib/locust/test
      copying locust/test/test_zmqrpc.py -> build/lib/locust/test
      copying locust/test/test_runners.py -> build/lib/locust/test
      copying locust/test/test_taskratio.py -> build/lib/locust/test
      copying locust/test/test_sequential_taskset.py -> build/lib/locust/test
      copying locust/test/testcases.py -> build/lib/locust/test
      copying locust/test/test_locust_class.py -> build/lib/locust/test
      copying locust/test/test_client.py -> build/lib/locust/test
      copying locust/test/test_fasthttp.py -> build/lib/locust/test
      copying locust/test/test_main.py -> build/lib/locust/test
      creating build/lib/locust/util
      copying locust/util/deprecation.py -> build/lib/locust/util
      copying locust/util/rounding.py -> build/lib/locust/util
      copying locust/util/cache.py -> build/lib/locust/util
      copying locust/util/__init__.py -> build/lib/locust/util
      copying locust/util/timespan.py -> build/lib/locust/util
      copying locust/util/exception_handler.py -> build/lib/locust/util
      creating build/lib/locust/user
      copying locust/user/task.py -> build/lib/locust/user
      copying locust/user/users.py -> build/lib/locust/user
      copying locust/user/__init__.py -> build/lib/locust/user
      copying locust/user/inspectuser.py -> build/lib/locust/user
      copying locust/user/sequential_taskset.py -> build/lib/locust/user
      copying locust/user/wait_time.py -> build/lib/locust/user
      creating build/lib/locust/contrib
      copying locust/contrib/__init__.py -> build/lib/locust/contrib
      copying locust/contrib/fasthttp.py -> build/lib/locust/contrib
      creating build/lib/locust/rpc
      copying locust/rpc/zmqrpc.py -> build/lib/locust/rpc
      copying locust/rpc/protocol.py -> build/lib/locust/rpc
      copying locust/rpc/__init__.py -> build/lib/locust/rpc
      running egg_info
      writing locustio.egg-info/PKG-INFO
      writing dependency_links to locustio.egg-info/dependency_links.txt
      writing entry points to locustio.egg-info/entry_points.txt
      writing top-level names to locustio.egg-info/top_level.txt
      reading manifest file 'locustio.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      writing manifest file 'locustio.egg-info/SOURCES.txt'
      creating build/lib/locust/static
      copying locust/static/chart.js -> build/lib/locust/static
      copying locust/static/echarts.common.min.js -> build/lib/locust/static
      copying locust/static/jquery-1.11.3.min.js -> build/lib/locust/static
      copying locust/static/jquery.jqote2.min.js -> build/lib/locust/static
      copying locust/static/jquery.tools.min.js -> build/lib/locust/static
      copying locust/static/locust.js -> build/lib/locust/static
      copying locust/static/style.css -> build/lib/locust/static
      copying locust/static/vintage.js -> build/lib/locust/static
      creating build/lib/locust/static/img
      copying locust/static/img/favicon.ico -> build/lib/locust/static/img
      copying locust/static/img/logo.png -> build/lib/locust/static/img
      copying locust/static/img/top_bg.png -> build/lib/locust/static/img
      creating build/lib/locust/templates
      copying locust/templates/index.html -> build/lib/locust/templates
      installing to build/bdist.macosx-10.14-x86_64/wheel
      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) ****
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for locustio
  Running setup.py clean for locustio
Failed to build locustio
Installing collected packages: locustio
  Running setup.py install for locustio ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for locustio did not run successfully.
  │ exit code: 1
  ╰─> [4 lines of output]
      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) ****
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> locustio

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

查了好多,最后发现是这个版本有bug 果断指定版本,再次安装成功

pip install locustio==0.14.6 -i https://pypi.tuna.tsinghua.edu.cn/simple