README.md 1.01 KB
Newer Older
Ahmad Reza's avatar
Ahmad Reza committed
1
2
3
4
For Linux:

-unzip the source code:

Ahmad Reza's avatar
Ahmad Reza committed
5
    unzip swarm-world.zip
Ahmad Reza's avatar
Ahmad Reza committed
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


-install the following python packages:

    1. sudo apt-get install python3.6 python3-pip 

    2. sudo pip3 install numpy

    3. sudo pip3 install pandas

    4. sudo pip3 install pyglet

- install Gnuplot:

    sudo apt-get install gnuplot-x11

- go to the main folder of the SNS-Folder and start it with:

    python3.6 run.py


For development the IDE Pycharm is recommended:

https://www.jetbrains.com/help/pycharm/install-and-set-up-pycharm.html


Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
32
For Windows/Linux/MacOs:
Ahmad Reza's avatar
Ahmad Reza committed
33
34
35
36
- unzip souce code
- install python3.6
- install pycharm
- run pycharm
Ahmad Reza's avatar
Ahmad Reza committed
37
- open swarm-world as a project
Ahmad Reza's avatar
Ahmad Reza committed
38
39
40
41
42
43
44
45
- Open File->Settings-"Project-Interpreter"
- Chose python3.6 as an interpreter
- Chose the plus sign and install:
    1. pip3
    2. numpy
    3. pandas
    4. pyglet
- press Okey
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
46
47
- wait until everything is installed
- chose Run->swarm-sim.py
Ahmad Reza's avatar
Ahmad Reza committed
48
49
    - If it gives an error that it cannot find the interpretetor
       Open Run->"Edit Configuration" Chose the python3.6 as an interpretetor