回到顶部

阅读目录

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)

错误日志:

C:\Users\xieboke>pip install locustio -U
Collecting locustio
  Using cached locustio-0.999.tar.gz (267 kB)
Building wheels for collected packages: locustio
  Building wheel for locustio (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'd:\program files\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\CJTDEV~1\\AppData\\Local\\Temp\\pip-install-nzjtwyrh\\locustio\\setup.py'"'"'; __file__='"'"'C:\\Users\\CJTDEV~1\\AppData\\Local\\Temp\\pip-install-nzjtwyrh\\locustio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\CJTDEV~1\AppData\Local\Temp\pip-wheel-c4cvk40m'
       cwd: C:\Users\CJTDEV~1\AppData\Local\Temp\pip-install-nzjtwyrh\locustio\
  Complete output (89 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib
  creating build\lib\locust
  copying locust\argument_parser.py -> build\lib\locust
  copying locust\clients.py -> build\lib\locust
  copying locust\env.py -> build\lib\locust
  copying locust\event.py -> build\lib\locust
  copying locust\exception.py -> build\lib\locust
  copying locust\log.py -> build\lib\locust
  copying locust\main.py -> build\lib\locust
  copying locust\runners.py -> build\lib\locust
  copying locust\stats.py -> build\lib\locust
  copying locust\web.py -> build\lib\locust
  copying locust\__init__.py -> build\lib\locust
  copying locust\__main__.py -> build\lib\locust
  creating build\lib\locust\contrib
  copying locust\contrib\fasthttp.py -> build\lib\locust\contrib
  copying locust\contrib\__init__.py -> build\lib\locust\contrib
  creating build\lib\locust\rpc
  copying locust\rpc\protocol.py -> build\lib\locust\rpc
  copying locust\rpc\zmqrpc.py -> build\lib\locust\rpc
  copying locust\rpc\__init__.py -> build\lib\locust\rpc
  creating build\lib\locust\test
  copying locust\test\mock_locustfile.py -> build\lib\locust\test
  copying locust\test\mock_logging.py -> build\lib\locust\test
  copying locust\test\testcases.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_locust_class.py -> build\lib\locust\test
  copying locust\test\test_log.py -> build\lib\locust\test
  copying locust\test\test_main.py -> build\lib\locust\test
  copying locust\test\test_old_wait_api.py -> build\lib\locust\test
  copying locust\test\test_parser.py -> build\lib\locust\test
  copying locust\test\test_runners.py -> build\lib\locust\test
  copying locust\test\test_sequential_taskset.py -> build\lib\locust\test
  copying locust\test\test_stats.py -> build\lib\locust\test
  copying locust\test\test_tags.py -> build\lib\locust\test
  copying locust\test\test_taskratio.py -> build\lib\locust\test
  copying locust\test\test_util.py -> build\lib\locust\test
  copying locust\test\test_wait_time.py -> build\lib\locust\test
  copying locust\test\test_web.py -> build\lib\locust\test
  copying locust\test\test_zmqrpc.py -> build\lib\locust\test
  copying locust\test\util.py -> build\lib\locust\test
  copying locust\test\__init__.py -> build\lib\locust\test
  creating 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\task.py -> build\lib\locust\user
  copying locust\user\users.py -> build\lib\locust\user
  copying locust\user\wait_time.py -> build\lib\locust\user
  copying locust\user\__init__.py -> build\lib\locust\user
  creating build\lib\locust\util
  copying locust\util\cache.py -> build\lib\locust\util
  copying locust\util\deprecation.py -> build\lib\locust\util
  copying locust\util\exception_handler.py -> build\lib\locust\util
  copying locust\util\rounding.py -> build\lib\locust\util
  copying locust\util\timespan.py -> build\lib\locust\util
  copying locust\util\__init__.py -> build\lib\locust\util
  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.win-amd64\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) ****

  ----------------------------------------
  ERROR: Failed building wheel for locustio
  Running setup.py clean for locustio
Failed to build locustio
Installing collected packages: locustio
  Attempting uninstall: locustio
    Found existing installation: locustio 0.8.1
    Uninstalling locustio-0.8.1:
      Successfully uninstalled locustio-0.8.1
    Running setup.py install for locustio ... error
    ERROR: Command errored out with exit status 1:
     command: 'd:\program files\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\CJTDEV~1\\AppData\\Local\\Temp\\pip-install-nzjtwyrh\\locustio\\setup.py'"'"'; __file__='"'"'C:\\Users\\CJTDEV~1\\AppData\\Local\\Temp\\pip-install-nzjtwyrh\\locustio\\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\CJTDEV~1\AppData\Local\Temp\pip-record-bor1ayrr\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\program files\python36\Include\locustio'
         cwd: C:\Users\CJTDEV~1\AppData\Local\Temp\pip-install-nzjtwyrh\locustio\
    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) ****

    ----------------------------------------
  Rolling back uninstall of locustio
  Moving to d:\program files\python36\lib\site-packages\locust\
   from d:\program files\python36\lib\site-packages\~ocust
  Moving to d:\program files\python36\lib\site-packages\locustio-0.8.1-py3.6.egg-info
   from d:\program files\python36\lib\site-packages\~ocustio-0.8.1-py3.6.egg-info
  Moving to d:\program files\python36\scripts\locust-script.py
   from C:\Users\CJTDEV~1\AppData\Local\Temp\pip-uninstall-zt7khipk\locust-script.py
  Moving to d:\program files\python36\scripts\locust.exe
   from C:\Users\CJTDEV~1\AppData\Local\Temp\pip-uninstall-zt7khipk\locust.exe
ERROR: Command errored out with exit status 1: 'd:\program files\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\CJTDEV~1\\AppData\\Local\\Temp\\pip-install-nzjtwyrh\\locustio\\setup.py'"'"'; __file__='"'"'C:\\Users\\CJTDEV~1\\AppData\\Local\\Temp\\pip-install-nzjtwyrh\\locustio\\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\CJTDEV~1\AppData\Local\Temp\pip-record-bor1ayrr\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\program files\python36\Include\locustio' Check the logs for full command output.

解决办法:

pip3 install -i https://pypi.douban.com/simple/ locustio==0.14.6

 


^_^
请喝咖啡 ×

本作品由 卓越笔记 采用 知识共享署名 - 非商业性使用 - 相同方式共享 4.0 国际许可协议 进行许可

前一篇: centos docker 安装和使用
下一篇: locust 性能测试工具使用资料