Skip to content
Lars Holmberg edited this page Aug 22, 2020 · 21 revisions

Some common installation issues

psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory

https://stackoverflow.com/questions/63440765/locust-installation-error-using-pip3-error-command-errored-out-with-exit-statu

Windows

https://stackoverflow.com/questions/61592069/locust-is-not-installing-on-my-windows-10-for-load-testing

Installation works, but the locust command is not found

Perhaps you got a message saying The script locust is installed in '...' which is not on PATH when running pip? Add that directory to your PATH environment variable.

Increasing Maximum Number of Open Files Limit

Every User/HTTP connection from Locust opens a new file (technically a file descriptor). Many operating systems by default set a low limit for the maximum number of files that can be open at the same time.

Locust will try to adjust this automatically for you, but in a lot of cases your operating system will not allow it (in which case you will get a warning in the log). Instead you will have to do it manually. How to do this depends on your operating system you might find some useful information here: https://www.tecmint.com/increase-set-open-file-limits-in-linux/

Clone this wiki locally