-
Notifications
You must be signed in to change notification settings - Fork 12
/
INSTALL
61 lines (40 loc) · 1.46 KB
/
INSTALL
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
## Installation of simuPOP
NOTE: The following instructions can be out of date due to the evolution of operating systens, Python, and
the Python tool chain. Please [submit an issue](https://github.com/BoPeng/simuPOP/issues) if you fail to
install simuPOP with the provided instructions, and/or submit a PR to update these instructions.
### Install using conda
If you have Anaconda installed, you can install simuPOP with command
```
conda install -c conda-forge simuPOP
```
### Compile from source
If you are working with a development version of simuPOP or an unsupported platform, you may need to install simuPOP from source.
Generally speaking, you will need a recent C/C++ compiler that supports the `c++17` standard and zlib.
#### Checkout the simuPOP source code
Using any git client, checkout simuPOP from https://github.com/BoPeng/simuPOP.
#### Linux
Linux systems generally have gcc installed. To compile simuPOP from source, you need to
first install libz and zlib.h
```
sudo apt-get install zlib1g
conda install -c conda-forge zlib
```
then run
```
python setup.py install
```
#### Windows
You will need a C++ compiler from Visual Studio. A community version can be downloaded from Microsoft free of charge.
After you have install MSVC, run
```
conda install -c conda-forge vs2022_win-64
```
to make VC available to conda, and
```
conda install -c conda-forge zlib
```
to install zlib.
You can then compile simuPOP with command
```
python setup.py install
```