Skip to content

Commit

Permalink
Merge pull request #857 from locustio/install-instructions
Browse files Browse the repository at this point in the history
Install instructions
  • Loading branch information
aldenpeterson-wf authored Jul 31, 2018
2 parents a13864f + 55cae6a commit d53618b
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions docs/installation.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
Installation
============

Locust is available on PyPI and can be installed through pip or easy_install
Locust is available on `PyPI <https://pypi.org/project/locustio/>`_ and can be installed with `pip <https://pip.pypa.io/>`_.

for Python 2.7:

.. code-block:: console
$ python -m pip install locustio
for Python 3:

.. code-block:: console
pip install locustio
$ python3 -m pip install locustio
If you want the bleeding edge version, you can use pip to install directly from our Git repository. For example, to install the master branch using Python 3:

When Locust is installed, a **locust** command should be available in your shell (if you're not using
.. code-block:: console
$ python3 -m pip install -e git://github.com/locustio/locust.git@master#egg=locustio
Once Locust is installed, a **locust** command should be available in your shell. (if you're not using
virtualenv—which you should—make sure your python script directory is on your path).

To see available options, run:
Expand All @@ -27,12 +40,12 @@ Locust supports Python 2.7, 3.4, 3.5, and 3.6.
Installing Locust on Windows
----------------------------

On Windows, running ``pip install locustio`` *should* work.
On Windows, running ``pip install locustio`` *should* work.

However, if it doesn't, chances are that it can be fixed by first installing
the pre built binary packages for pyzmq, gevent and greenlet.
the pre built binary packages for pyzmq, gevent and greenlet.

You can find an unofficial collection of pre built python packages for windows here:
You can find an unofficial collection of pre built python packages for windows here:
`http://www.lfd.uci.edu/~gohlke/pythonlibs/ <http://www.lfd.uci.edu/~gohlke/pythonlibs/>`_

When you've downloaded a pre-built ``.whl`` file, you can install it with:
Expand All @@ -41,26 +54,26 @@ When you've downloaded a pre-built ``.whl`` file, you can install it with:
$ pip install name-of-file.whl
Once you've done that you should be able to just ``pip install locustio``.
Once you've done that you should be able to just ``pip install locustio``.

.. note::

Running Locust on Windows should work fine for developing and testing your load testing
scripts. However, when running large scale tests, it's recommended that you do that on
Running Locust on Windows should work fine for developing and testing your load testing
scripts. However, when running large scale tests, it's recommended that you do that on
Linux machines, since gevent's performance under Windows is poor.


Installing Locust on OS X
-------------------------
Installing Locust on macOS
--------------------------

The following is currently the shortest path to installing gevent on OS X using Homebrew.

#. Install `Homebrew <http://mxcl.github.com/homebrew/>`_.
#. Install libev (dependency for gevent):

.. code-block:: console
.. code-block:: console
brew install libev
brew install libev
#. Then follow the above instructions.

Expand Down

0 comments on commit d53618b

Please sign in to comment.