1
1
# Installing PySCeS
2
2
3
- Binary install packages for all three OSs and Python versions 3.6-3.9 are provided.
4
- Anaconda users can conveniently install PySCeS with:
3
+ Binary install packages for all three OSs and recent Python versions are
4
+ provided. Anaconda packages are available for 64-bit Windows and Linux, as well as
5
+ macOS * x86_64* architecture. Apple Silicon (* arm64* ) macOS users should install with
6
+ ` pip ` (see below). Anaconda users can conveniently install PySCeS with:
5
7
6
8
``` bash
7
9
$ conda install -c conda-forge -c pysces pysces
@@ -11,7 +13,9 @@ Any dependencies will be installed automatically, including the optional depende
11
13
* Assimulo* , * ipyparallel* and * libSBML* .
12
14
13
15
Alternatively, you can use * pip* to
14
- install PySCeS from PyPI. Core dependencies will be installed automatically.
16
+ install PySCeS from PyPI. Core dependencies will be installed automatically. Wheels
17
+ are available for 64-bit Windows and Linux, as well as macOS architectures * x86_64* and
18
+ * arm64* (starting from PySCeS version 1.2.0).
15
19
16
20
``` bash
17
21
$ pip install pysces
@@ -30,7 +34,7 @@ To install the optional dependences:
30
34
> very limited number of Python versions and operating systems on PyPI.
31
35
> ** This is not guaranteed to work!** If you require Assimulo, the conda
32
36
> install is by far the easier option as up-to-date binaries are supplied
33
- > for all OS and recent Python versions.
37
+ > for all OSs and recent Python versions.
34
38
35
39
For more information on installing and configuring PySCeS please see the
36
40
[ PySCeS User Guide] ( https://github.com/PySCeS/pysces-documentation/blob/main/source/userguide_doc.rst#installing-and-configuring )
@@ -42,17 +46,25 @@ installation from source. This requires Fortran and C compilers.
42
46
43
47
### Windows build
44
48
45
- The fastest way to build your own copy of PySCeS is to use Anaconda Python.
49
+ The fastest way to build your own copy of PySCeS is to use Anaconda for
50
+ installing Python and the required libraries. In addition, the * RTools* compiler
51
+ toolchain is required.
46
52
47
53
* Download and install
48
- [ Anaconda for Python 3] ( https://www.anaconda.com/products/individual #Downloads )
54
+ [ Anaconda for Python 3] ( https://www.anaconda.com/download #Downloads )
49
55
* Obtain [ Git for Windows] ( https://git-scm.com/download/win )
56
+ * Obtain the * RTools* compiler toolchain (** version 4.0.0.20220206** ), either using
57
+ [ Chocolatey] ( https://chocolatey.org/install )
58
+ (` choco install rtools -y --version=4.0.0.20220206 ` ) or by
59
+ [ direct download] ( https://github.com/r-windows/rtools-installer/releases/download/2022-02-06/rtools40-x86_64.exe )
60
+ - Install in ` C:\rtools40 ` (Chocolatey automatically installs to this path)
61
+ - Add ` c:\rtools40\ucrt64\bin ` and ` c:\rtools40\usr\bin ` to the system ` PATH `
50
62
* Create a PySCeS environment using conda and activate it:
51
63
52
64
``` bash
53
- $ conda create -n pyscesdev -c conda-forge python=3.8 numpy scipy \
65
+ $ conda create -n pyscesdev -c conda-forge python=3.11 numpy=1.26 scipy \
54
66
matplotlib sympy packaging pip wheel ipython python-libsbml \
55
- fortran-compiler assimulo scikit-build
67
+ assimulo meson meson-python ninja
56
68
$ conda activate pyscesdev
57
69
```
58
70
@@ -63,11 +75,10 @@ $ conda activate pyscesdev
63
75
(pyscesdev)$ cd pysces-src
64
76
```
65
77
66
- * Now you can build and install PySCeS into the pyscesdev environment
78
+ * Now you can build and install PySCeS into the * pyscesdev* environment
67
79
68
80
``` bash
69
- (pyscesdev)$ python setup.py build
70
- (pyscesdev)$ python setup.py install
81
+ (pyscesdev)$ pip install --no-deps --no-build-isolation .
71
82
```
72
83
73
84
### Linux build
@@ -80,7 +91,7 @@ Clone the source from Github as described above, change into the source director
80
91
run:
81
92
82
93
``` bash
83
- $ python setup.py install
94
+ $ pip install .
84
95
```
85
96
86
97
### macOS build
@@ -92,7 +103,7 @@ compilers may be installed via [Xcode](https://developer.apple.com/xcode). Clone
92
103
source from Github as described above, change into the source directory and run:
93
104
94
105
``` bash
95
- $ python setup.py install
106
+ $ pip install .
96
107
```
97
108
98
- © Brett G. Olivier & Johann M. Rohwer, August 2021
109
+ © Johann M. Rohwer & Brett G. Olivier, January 2024
0 commit comments