@@ -12,7 +12,7 @@ version, Pyomo will remove testing for that Python version.
12
12
Using CONDA
13
13
~~~~~~~~~~~
14
14
15
- We recommend installation with * conda * , which is included with the
15
+ We recommend installation with `` conda `` , which is included with the
16
16
Anaconda distribution of Python. You can install Pyomo in your system
17
17
Python installation by executing the following in a shell:
18
18
@@ -21,7 +21,7 @@ Python installation by executing the following in a shell:
21
21
conda install -c conda-forge pyomo
22
22
23
23
Optimization solvers are not installed with Pyomo, but some open source
24
- optimization solvers can be installed with conda as well:
24
+ optimization solvers can be installed with `` conda `` as well:
25
25
26
26
::
27
27
@@ -31,7 +31,7 @@ optimization solvers can be installed with conda as well:
31
31
Using PIP
32
32
~~~~~~~~~
33
33
34
- The standard utility for installing Python packages is * pip * . You
34
+ The standard utility for installing Python packages is `` pip `` . You
35
35
can install Pyomo in your system Python installation by executing
36
36
the following in a shell:
37
37
@@ -43,14 +43,14 @@ the following in a shell:
43
43
Conditional Dependencies
44
44
~~~~~~~~~~~~~~~~~~~~~~~~
45
45
46
- Extensions to Pyomo, and many of the contributions in `pyomo.contrib `,
46
+ Extensions to Pyomo, and many of the contributions in `` pyomo.contrib ` `,
47
47
often have conditional dependencies on a variety of third-party Python
48
48
packages including but not limited to: matplotlib, networkx, numpy,
49
49
openpyxl, pandas, pint, pymysql, pyodbc, pyro4, scipy, sympy, and
50
50
xlrd.
51
51
52
52
A full list of conditional dependencies can be found in Pyomo's
53
- `setup.py ` and displayed using:
53
+ `` setup.py ` ` and displayed using:
54
54
55
55
::
56
56
@@ -72,3 +72,28 @@ with the standard Anaconda installation.
72
72
You can check which Python packages you have installed using the command
73
73
``conda list `` or ``pip list ``. Additional Python packages may be
74
74
installed as needed.
75
+
76
+
77
+ Installation with Cython
78
+ ~~~~~~~~~~~~~~~~~~~~~~~~
79
+
80
+ Users can opt to install Pyomo with
81
+ `cython <https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html >`_
82
+ initialized.
83
+
84
+ .. note ::
85
+ This can only be done via ``pip `` or from source.
86
+
87
+ Via ``pip ``:
88
+
89
+ ::
90
+
91
+ pip install pyomo --global-option="--with-cython"
92
+
93
+ From source (recommended for advanced users only):
94
+
95
+ ::
96
+
97
+ git clone https://github.com/Pyomo/pyomo.git
98
+ cd pyomo
99
+ python setup.py install --with-cython
0 commit comments