File: installation.rst

package info (click to toggle)
python-simpy3 3.0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,080 kB
  • sloc: python: 2,885; makefile: 138
file content (47 lines) | stat: -rw-r--r-- 1,173 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
============
Installation
============

SimPy is implemented in pure Python and has no dependencies. SimPy runs on
Python 2 (>= 2.7) and Python 3 (>= 3.2). PyPy is also supported. If you have
`pip <http://pypi.python.org/pypi/pip>`_ installed, just type

.. code-block:: bash

    $ pip install simpy

and you are done.

Installing from source
======================

Alternatively, you can `download SimPy <http://pypi.python.org/pypi/SimPy/>`_
and install it manually. Extract the archive, open a terminal window where you
extracted SimPy and type:

.. code-block:: bash

    $ python setup.py install

You can now optionally run SimPy's tests to see if everything works fine. You
need `pytest <http://pytest.org>`_ for this. Run the following command within
the source directory of SimPy:

.. code-block:: bash

    $ py.test --pyargs simpy


Upgrading from SimPy 2
======================

If you are already familiar with SimPy 2, please read the Guide
:ref:`porting_from_simpy2`.


What's Next
===========

Now that you've installed SimPy, you probably want to simulate something. The
:ref:`next section <basic_concepts>` will introduce you to SimPy's basic
concepts.