Locust: Locust Installation error on Ubuntu 16.04 and Debian Stretch

Created on 8 Jun 2020  ·  16Comments  ·  Source: locustio/locust

Describe the bug

As far as I understand, Locust package has moved from _locustio_ to locust. I was developing an Ansible role to install locust on a few of Debian family operating systems such as the following:

  • Ubuntu 20.04
  • Ubuntu 18.04
  • Ubuntu 16.04
  • Debian Buster
  • Debian Stretch

Using python3's pip, locust is successfully installed on Ubuntu 20.04, Ubuntu 18.04 and Debian Buster. However, it attempts to install locustio along with locust and errors out on Ubuntu 16.04 and Debian Stretch.

Expected behavior

Clean installation on Ubuntu 16.04 and Debian Stretch.

Actual behavior

Outputs below error (running locally within a docker container of ubuntu 16.04):

$ python3 -m pip install locust
Collecting locust
  Downloading locust-0.0.tar.gz (833 bytes)
Collecting locustio
  Downloading locustio-0.999.tar.gz (267 kB)
     |################################| 267 kB 2.5 MB/s 
Building wheels for collected packages: locust, locustio
  Building wheel for locust (setup.py) ... done
  Created wheel for locust: filename=locust-0.0-py3-none-any.whl size=1042 sha256=f16b8e06507985e6c7922338e7ab884a279416f6ba98370cfb6e7931d3b41ffe
  Stored in directory: /root/.cache/pip/wheels/fa/78/82/0d758e038e682fad3d3ece52a4724f9cb2822693ab6f504589
  Building wheel for locustio (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-v2zs_a7d/locustio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-v2zs_a7d/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 /tmp/pip-wheel-pyaprmw9
       cwd: /tmp/pip-install-v2zs_a7d/locustio/
  Complete output (89 lines):
  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/runners.py -> build/lib/locust
  copying locust/__init__.py -> build/lib/locust
  copying locust/main.py -> build/lib/locust
  copying locust/__main__.py -> build/lib/locust
  copying locust/log.py -> build/lib/locust
  copying locust/stats.py -> build/lib/locust
  copying locust/event.py -> build/lib/locust
  copying locust/argument_parser.py -> build/lib/locust
  copying locust/env.py -> build/lib/locust
  copying locust/clients.py -> build/lib/locust
  copying locust/web.py -> build/lib/locust
  creating build/lib/locust/test
  copying locust/test/test_client.py -> build/lib/locust/test
  copying locust/test/mock_locustfile.py -> build/lib/locust/test
  copying locust/test/test_runners.py -> build/lib/locust/test
  copying locust/test/test_fasthttp.py -> build/lib/locust/test
  copying locust/test/test_wait_time.py -> build/lib/locust/test
  copying locust/test/test_parser.py -> build/lib/locust/test
  copying locust/test/__init__.py -> build/lib/locust/test
  copying locust/test/testcases.py -> build/lib/locust/test
  copying locust/test/test_zmqrpc.py -> build/lib/locust/test
  copying locust/test/test_old_wait_api.py -> build/lib/locust/test
  copying locust/test/test_web.py -> build/lib/locust/test
  copying locust/test/mock_logging.py -> build/lib/locust/test
  copying locust/test/test_util.py -> build/lib/locust/test
  copying locust/test/test_taskratio.py -> build/lib/locust/test
  copying locust/test/test_stats.py -> build/lib/locust/test
  copying locust/test/test_log.py -> build/lib/locust/test
  copying locust/test/test_tags.py -> build/lib/locust/test
  copying locust/test/test_locust_class.py -> build/lib/locust/test
  copying locust/test/test_sequential_taskset.py -> build/lib/locust/test
  copying locust/test/test_main.py -> build/lib/locust/test
  copying locust/test/util.py -> build/lib/locust/test
  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/util
  copying locust/util/deprecation.py -> build/lib/locust/util
  copying locust/util/exception_handler.py -> build/lib/locust/util
  copying locust/util/cache.py -> build/lib/locust/util
  copying locust/util/rounding.py -> build/lib/locust/util
  copying locust/util/__init__.py -> build/lib/locust/util
  copying locust/util/timespan.py -> build/lib/locust/util
  creating build/lib/locust/user
  copying locust/user/inspectuser.py -> build/lib/locust/user
  copying locust/user/__init__.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/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/fasthttp.py -> build/lib/locust/contrib
  copying locust/contrib/__init__.py -> build/lib/locust/contrib
  running egg_info
  writing top-level names to locustio.egg-info/top_level.txt
  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
  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.linux-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) ****

  ----------------------------------------
  ERROR: Failed building wheel for locustio
  Running setup.py clean for locustio
Successfully built locust
Failed to build locustio
Installing collected packages: locustio, locust
    Running setup.py install for locustio ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-v2zs_a7d/locustio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-v2zs_a7d/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 /tmp/pip-record-bzfj941a/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.5/locustio
         cwd: /tmp/pip-install-v2zs_a7d/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) ****

    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-v2zs_a7d/locustio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-v2zs_a7d/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 /tmp/pip-record-bzfj941a/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.5/locustio Check the logs for full command output.

Steps to reproduce

Install locust on an ubuntu 16.04 or debian stretch docker image.

OR try following:

docker run -it darkwizard242/ansible:ubuntu-16.04 /bin/bash -c 'python3 -m pip install locust' 
docker run -it darkwizard242/ansible:debian-stretch /bin/bash -c 'python3 -m pip install locust' 

Environment

  • OS: Ubuntu 16.04 & Debian Stretch
  • Python version: 3.5.2 (ubuntu 16.04) and 3.5.3 (debian-stretch)
  • Locust version: Default (as failure at installation process with certain operating systems)
bug

Most helpful comment

@heyman Can you delete the locust 0.0 package? I dont have permissions...

Once it is removed people should at least get a more reasonable error message. The reason for the strange error is that locust 0.0 (from 2018) states that it supports 3.5, but it just references locustio. "real" packages released as locust (starting with 1.0) dont support 3.5, so you get the only one that does.

All 16 comments

Ignore my previous response... The problem is that you are on Python 3.5. Only 3.6 and up are supported.

@cyberw - Ah, I was thinking the same but thought it would be wiser to confirm it the actual development team (since the behavior of how pip was installing the package was kind of confusing me). Nevertheless, thanks very much. Appreciate that you looked into it for me.

@heyman Can you delete the locust 0.0 package? I dont have permissions...

Once it is removed people should at least get a more reasonable error message. The reason for the strange error is that locust 0.0 (from 2018) states that it supports 3.5, but it just references locustio. "real" packages released as locust (starting with 1.0) dont support 3.5, so you get the only one that does.

@cyberw - Makes sense. Thanks mate.

It's now removed!

No problem. If you absolutely need 3.5 support, you can use locustio==0.13.5, but it is getting old at this point :)

@cyberw - Oh cool. I can get by using the higher versions of python3. Thanks again for the help :+1:

When i try to locust in windows 10 and python 3.9 ; i got this error

C:\Users\CEM>python -m pip install locustio
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: 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825\locustio\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825\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\CEM\AppData\Local\Temp\pip-wheel-i79pnxrb'
cwd: C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825locustio\
Complete output (89 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\liblocust
copying locust\argument_parser.py -> build\liblocust
copying locust\clients.py -> build\liblocust
copying locust\env.py -> build\liblocust
copying locust\event.py -> build\liblocust
copying locust\exception.py -> build\liblocust
copying locust\log.py -> build\liblocust
copying locust\main.py -> build\liblocust
copying locust\runners.py -> build\liblocust
copying locust\stats.py -> build\liblocust
copying locust\web.py -> build\liblocust
copying locust__init__.py -> build\liblocust
copying locust__main__.py -> build\liblocust
creating build\liblocust\contrib
copying locust\contrib\fasthttp.py -> build\liblocust\contrib
copying locust\contrib__init__.py -> build\liblocust\contrib
creating build\liblocust\rpc
copying locust\rpc\protocol.py -> build\liblocust\rpc
copying locust\rpc\zmqrpc.py -> build\liblocust\rpc
copying locust\rpc__init__.py -> build\liblocust\rpc
creating build\liblocust\test
copying locust\test\mock_locustfile.py -> build\liblocust\test
copying locust\test\mock_logging.py -> build\liblocust\test
copying locust\test\testcases.py -> build\liblocust\test
copying locust\test\test_client.py -> build\liblocust\test
copying locust\test\test_fasthttp.py -> build\liblocust\test
copying locust\test\test_locust_class.py -> build\liblocust\test
copying locust\test\test_log.py -> build\liblocust\test
copying locust\test\test_main.py -> build\liblocust\test
copying locust\test\test_old_wait_api.py -> build\liblocust\test
copying locust\test\test_parser.py -> build\liblocust\test
copying locust\test\test_runners.py -> build\liblocust\test
copying locust\test\test_sequential_taskset.py -> build\liblocust\test
copying locust\test\test_stats.py -> build\liblocust\test
copying locust\test\test_tags.py -> build\liblocust\test
copying locust\test\test_taskratio.py -> build\liblocust\test
copying locust\test\test_util.py -> build\liblocust\test
copying locust\test\test_wait_time.py -> build\liblocust\test
copying locust\test\test_web.py -> build\liblocust\test
copying locust\test\test_zmqrpc.py -> build\liblocust\test
copying locust\test\util.py -> build\liblocust\test
copying locust\test__init__.py -> build\liblocust\test
creating build\liblocust\user
copying locust\user\inspectuser.py -> build\liblocust\user
copying locust\user\sequential_taskset.py -> build\liblocust\user
copying locust\user\task.py -> build\liblocust\user
copying locust\user\users.py -> build\liblocust\user
copying locust\user\wait_time.py -> build\liblocust\user
copying locust\user__init__.py -> build\liblocust\user
creating build\liblocust\util
copying locust\util\cache.py -> build\liblocust\util
copying locust\util\deprecation.py -> build\liblocust\util
copying locust\util\exception_handler.py -> build\liblocust\util
copying locust\util\rounding.py -> build\liblocust\util
copying locust\util\timespan.py -> build\liblocust\util
copying locust\util__init__.py -> build\liblocust\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\liblocust\static
copying locust\static\chart.js -> build\liblocust\static
copying locust\static\echarts.common.min.js -> build\liblocust\static
copying locust\static\jquery-1.11.3.min.js -> build\liblocust\static
copying locust\static\jquery.jqote2.min.js -> build\liblocust\static
copying locust\static\jquery.tools.min.js -> build\liblocust\static
copying locust\staticlocust.js -> build\liblocust\static
copying locust\static\style.css -> build\liblocust\static
copying locust\static\vintage.js -> build\liblocust\static
creating build\liblocust\static\img
copying locust\static\img\favicon.ico -> build\liblocust\static\img
copying locust\static\img\logo.png -> build\liblocust\static\img
copying locust\static\img\top_bg.png -> build\liblocust\static\img
creating build\liblocust\templates
copying locust\templates\index.html -> build\liblocust\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
Running setup.py install for locustio ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825\locustio\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825\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\CEM\AppData\Local\Temp\pip-record-gt6k0lvh\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\Includelocustio'
cwd: C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825locustio\
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\CEM\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825\locustio\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825\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\CEM\AppData\Local\Temp\pip-record-gt6k0lvh\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\Includelocustio' Check the logs for full command output.

my pip file located in Desktop\PIP file , i try to changed command to python -m pip install locust but it didnt work.

What happens when you actually run the correct command? (installing locust instead of locustio)

it is possible (likely even) that you are running into build issues, as there are no prebuilt locust / geventhttpclient wheels for python 3.9 yet.

While you wait, you can try the solutions mentioned at https://stackoverflow.com/questions/61592069/locust-is-not-installing-on-my-windows-10-for-load-testing and see if any of them help

This solution didnt work for me.

C:\Users\CEM>pip install -U locust
Collecting locust
Using cached locust-1.2.3-py3-none-any.whl (658 kB)
Collecting pyzmq>=16.0.2
Using cached pyzmq-19.0.2.tar.gz (1.2 MB)
Collecting geventhttpclient>=1.4.4
Downloading geventhttpclient-1.4.4.tar.gz (57 kB)
|████████████████████████████████| 57 kB 189 kB/s
Collecting flask>=1.1.2
Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Collecting Flask-BasicAuth>=0.2.0
Using cached Flask-BasicAuth-0.2.0.tar.gz (16 kB)
Collecting psutil>=5.6.7
Using cached psutil-5.7.2.tar.gz (460 kB)
Collecting gevent>=1.5.0
Using cached gevent-20.9.0.tar.gz (5.8 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\cem\appdata\local\programs\python\python39\python.exe' 'c:\users\cem\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-lop_gz5r\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"''
cwd: None
Complete output (42 lines):
Collecting setuptools>=40.8.0
Using cached setuptools-50.3.0-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting Cython>=3.0a5
Using cached Cython-3.0a6-py2.py3-none-any.whl (1.0 MB)
Collecting cffi>=1.12.3
Using cached cffi-1.14.3-cp39-cp39-win_amd64.whl (179 kB)
Collecting greenlet>=0.4.17
Using cached greenlet-0.4.17.tar.gz (61 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: greenlet
Building wheel for greenlet (setup.py): started
Building wheel for greenlet (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\cem\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-rsgftq8g\greenlet\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-rsgftq8g\greenlet\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\CEM\AppData\Local\Temp\pip-wheel-4aezcpu6'
cwd: C:\Users\CEM\AppData\Local\Temp\pip-install-rsgftq8g\greenlet\
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'greenlet' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for greenlet
Running setup.py clean for greenlet
Failed to build greenlet
Installing collected packages: setuptools, wheel, Cython, pycparser, cffi, greenlet
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\cem\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-rsgftq8g\greenlet\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-rsgftq8g\greenlet\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\CEM\AppData\Local\Temp\pip-record-3lra8aqe\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-lop_gz5r\overlay' --compile --install-headers 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-lop_gz5r\overlay\Include\greenlet'
cwd: C:\Users\CEM\AppData\Local\Temp\pip-install-rsgftq8g\greenlet\
Complete output (5 lines):
running install
running build
running build_ext
building 'greenlet' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\cem\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-rsgftq8g\greenlet\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-rsgftq8g\greenlet\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\CEM\AppData\Local\Temp\pip-record-3lra8aqe\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-lop_gz5r\overlay' --compile --install-headers 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-lop_gz5r\overlay\Include\greenlet' Check the logs for full command output.


ERROR: Command errored out with exit status 1: 'c:\users\cem\appdata\local\programs\python\python39\python.exe' 'c:\users\cem\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-lop_gz5r\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"'' Check the logs for full command output.

when i try "python -m pip install locust"; i got this error

C:\Users\CEM>python -m pip install locust
Collecting locust
Using cached locust-1.2.3-py3-none-any.whl (658 kB)
Collecting msgpack>=0.6.2
Using cached msgpack-1.0.0.tar.gz (232 kB)
Collecting ConfigArgParse>=1.0
Downloading ConfigArgParse-1.2.3.tar.gz (42 kB)
|████████████████████████████████| 42 kB 88 kB/s
Collecting flask>=1.1.2
Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Collecting Werkzeug>=1.0.1
Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting pyzmq>=16.0.2
Using cached pyzmq-19.0.2.tar.gz (1.2 MB)
Collecting geventhttpclient>=1.4.4
Using cached geventhttpclient-1.4.4.tar.gz (57 kB)
Collecting Flask-BasicAuth>=0.2.0
Using cached Flask-BasicAuth-0.2.0.tar.gz (16 kB)
Collecting requests>=2.9.1
Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting psutil>=5.6.7
Using cached psutil-5.7.2.tar.gz (460 kB)
Collecting gevent>=1.5.0
Using cached gevent-20.9.0.tar.gz (5.8 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-y7ytxott\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"''
cwd: None
Complete output (42 lines):
Collecting setuptools>=40.8.0
Using cached setuptools-50.3.0-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting Cython>=3.0a5
Using cached Cython-3.0a6-py2.py3-none-any.whl (1.0 MB)
Collecting cffi>=1.12.3
Using cached cffi-1.14.3-cp39-cp39-win_amd64.whl (179 kB)
Collecting greenlet>=0.4.17
Using cached greenlet-0.4.17.tar.gz (61 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: greenlet
Building wheel for greenlet (setup.py): started
Building wheel for greenlet (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-ra93qiym\greenlet\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-ra93qiym\greenlet\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\CEM\AppData\Local\Temp\pip-wheel-0ywb46h4'
cwd: C:\Users\CEM\AppData\Local\Temp\pip-install-ra93qiym\greenlet\
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'greenlet' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for greenlet
Running setup.py clean for greenlet
Failed to build greenlet
Installing collected packages: setuptools, wheel, Cython, pycparser, cffi, greenlet
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-ra93qiym\greenlet\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-ra93qiym\greenlet\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\CEM\AppData\Local\Temp\pip-record-zeqzesqp\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-y7ytxott\overlay' --compile --install-headers 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-y7ytxott\overlay\Include\greenlet'
cwd: C:\Users\CEM\AppData\Local\Temp\pip-install-ra93qiym\greenlet\
Complete output (5 lines):
running install
running build
running build_ext
building 'greenlet' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-ra93qiym\greenlet\setup.py'"'"'; __file__='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-ra93qiym\greenlet\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\CEM\AppData\Local\Temp\pip-record-zeqzesqp\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-y7ytxott\overlay' --compile --install-headers 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-y7ytxott\overlay\Include\greenlet' Check the logs for full command output.


ERROR: Command errored out with exit status 1: 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\CEM\AppData\Local\Temp\pip-build-env-y7ytxott\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"'' Check the logs for full command output.

Did you try the fixes mentioned in the stackoverflow post?

Yes ,i did ; but it didnt work for me

You tried all three of the suggested fixes, right?

Then I guess you'll have to wait for the next release (which will have pre-built wheels for python 3.9), or switch back to 3.8

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sanyco92 picture sanyco92  ·  4Comments

meeech picture meeech  ·  4Comments

ashleigh-robinson picture ashleigh-robinson  ·  3Comments

bretrouse picture bretrouse  ·  4Comments

foxracle picture foxracle  ·  3Comments