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



使用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.

9.png

解决办法:

Python
pip install -U setuptools
pip install -U --pre locustio

较验:

Python
locust -V

10.png




版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,可随意转载(O ^ ~ ^ O),别忘了标明转载来源即可。

评论

分享:

支付宝

微信