Locust package has moved from 'locustio' to 'locust'. Please update your referen

2023-02-18 15:25:48 浏览数 (1)

错误日志:

代码语言:javascript复制
C:Usersxieboke>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 filespython36python.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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersCJTDEV~1AppDataLocalTemppip-wheel-c4cvk40m'
       cwd: C:UsersCJTDEV~1AppDataLocalTemppip-install-nzjtwyrhlocustio
  Complete output (89 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating buildlib
  creating buildliblocust
  copying locustargument_parser.py -> buildliblocust
  copying locustclients.py -> buildliblocust
  copying locustenv.py -> buildliblocust
  copying locustevent.py -> buildliblocust
  copying locustexception.py -> buildliblocust
  copying locustlog.py -> buildliblocust
  copying locustmain.py -> buildliblocust
  copying locustrunners.py -> buildliblocust
  copying locuststats.py -> buildliblocust
  copying locustweb.py -> buildliblocust
  copying locust__init__.py -> buildliblocust
  copying locust__main__.py -> buildliblocust
  creating buildliblocustcontrib
  copying locustcontribfasthttp.py -> buildliblocustcontrib
  copying locustcontrib__init__.py -> buildliblocustcontrib
  creating buildliblocustrpc
  copying locustrpcprotocol.py -> buildliblocustrpc
  copying locustrpczmqrpc.py -> buildliblocustrpc
  copying locustrpc__init__.py -> buildliblocustrpc
  creating buildliblocusttest
  copying locusttestmock_locustfile.py -> buildliblocusttest
  copying locusttestmock_logging.py -> buildliblocusttest
  copying locusttesttestcases.py -> buildliblocusttest
  copying locusttesttest_client.py -> buildliblocusttest
  copying locusttesttest_fasthttp.py -> buildliblocusttest
  copying locusttesttest_locust_class.py -> buildliblocusttest
  copying locusttesttest_log.py -> buildliblocusttest
  copying locusttesttest_main.py -> buildliblocusttest
  copying locusttesttest_old_wait_api.py -> buildliblocusttest
  copying locusttesttest_parser.py -> buildliblocusttest
  copying locusttesttest_runners.py -> buildliblocusttest
  copying locusttesttest_sequential_taskset.py -> buildliblocusttest
  copying locusttesttest_stats.py -> buildliblocusttest
  copying locusttesttest_tags.py -> buildliblocusttest
  copying locusttesttest_taskratio.py -> buildliblocusttest
  copying locusttesttest_util.py -> buildliblocusttest
  copying locusttesttest_wait_time.py -> buildliblocusttest
  copying locusttesttest_web.py -> buildliblocusttest
  copying locusttesttest_zmqrpc.py -> buildliblocusttest
  copying locusttestutil.py -> buildliblocusttest
  copying locusttest__init__.py -> buildliblocusttest
  creating buildliblocustuser
  copying locustuserinspectuser.py -> buildliblocustuser
  copying locustusersequential_taskset.py -> buildliblocustuser
  copying locustusertask.py -> buildliblocustuser
  copying locustuserusers.py -> buildliblocustuser
  copying locustuserwait_time.py -> buildliblocustuser
  copying locustuser__init__.py -> buildliblocustuser
  creating buildliblocustutil
  copying locustutilcache.py -> buildliblocustutil
  copying locustutildeprecation.py -> buildliblocustutil
  copying locustutilexception_handler.py -> buildliblocustutil
  copying locustutilrounding.py -> buildliblocustutil
  copying locustutiltimespan.py -> buildliblocustutil
  copying locustutil__init__.py -> buildliblocustutil
  running egg_info
  writing locustio.egg-infoPKG-INFO
  writing dependency_links to locustio.egg-infodependency_links.txt
  writing entry points to locustio.egg-infoentry_points.txt
  writing top-level names to locustio.egg-infotop_level.txt
  reading manifest file 'locustio.egg-infoSOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'locustio.egg-infoSOURCES.txt'
  creating buildliblocuststatic
  copying locuststaticchart.js -> buildliblocuststatic
  copying locuststaticecharts.common.min.js -> buildliblocuststatic
  copying locuststaticjquery-1.11.3.min.js -> buildliblocuststatic
  copying locuststaticjquery.jqote2.min.js -> buildliblocuststatic
  copying locuststaticjquery.tools.min.js -> buildliblocuststatic
  copying locuststaticlocust.js -> buildliblocuststatic
  copying locuststaticstyle.css -> buildliblocuststatic
  copying locuststaticvintage.js -> buildliblocuststatic
  creating buildliblocuststaticimg
  copying locuststaticimgfavicon.ico -> buildliblocuststaticimg
  copying locuststaticimglogo.png -> buildliblocuststaticimg
  copying locuststaticimgtop_bg.png -> buildliblocuststaticimg
  creating buildliblocusttemplates
  copying locusttemplatesindex.html -> buildliblocusttemplates
  installing to buildbdist.win-amd64wheel
  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 filespython36python.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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersCJTDEV~1AppDataLocalTemppip-record-bor1ayrrinstall-record.txt' --single-version-externally-managed --compile --install-headers 'd:program filespython36Includelocustio'
         cwd: C:UsersCJTDEV~1AppDataLocalTemppip-install-nzjtwyrhlocustio
    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 filespython36libsite-packageslocust
   from d:program filespython36libsite-packages~ocust
  Moving to d:program filespython36libsite-packageslocustio-0.8.1-py3.6.egg-info
   from d:program filespython36libsite-packages~ocustio-0.8.1-py3.6.egg-info
  Moving to d:program filespython36scriptslocust-script.py
   from C:UsersCJTDEV~1AppDataLocalTemppip-uninstall-zt7khipklocust-script.py
  Moving to d:program filespython36scriptslocust.exe
   from C:UsersCJTDEV~1AppDataLocalTemppip-uninstall-zt7khipklocust.exe
ERROR: Command errored out with exit status 1: 'd:program filespython36python.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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersCJTDEV~1AppDataLocalTemppip-record-bor1ayrrinstall-record.txt' --single-version-externally-managed --compile --install-headers 'd:program filespython36Includelocustio' Check the logs for full command output.

解决办法:

代码语言:javascript复制
pip3 install -i https://pypi.douban.com/simple/ locustio==0.14.6

0 人点赞