You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update docs following the switch to meson-python
* only discuss editable install in contributor page
* update clean install docs
* bump version
* backport issue found from conda-forge on fortran arg for SNOPT
* temporary pin on docutils due to sphinx-tabs
* format
* options file no longer needed
* add note on cleaning build dir
Copy file name to clipboardExpand all lines: doc/install.rst
+6-16Lines changed: 6 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Conda packages are available on conda-forge and can be installed via
11
11
12
12
conda install -c conda-forge pyoptsparse
13
13
14
-
This would install pyOptSparse with the built-in optimizers.
14
+
This would install pyOptSparse with the built-in optimizers, plus IPOPT.
15
15
If you wish to use optimizers not packaged by ``conda``, e.g. SNOPT, then you must either build the package from source or use the installation script below.
16
16
If you have the SNOPT precompiled library available, it is possible to dynamically link it to pyOptSparse following the instructions on the :ref:`SNOPT installation page<snopt_by_conda>`.
17
17
@@ -29,7 +29,7 @@ Requirements
29
29
~~~~~~~~~~~~
30
30
pyOptSparse has the following dependencies:
31
31
32
-
* Python 3.7 or 3.8, though other Python 3 versions will likely work
32
+
* Python 3
33
33
* C and Fortran compilers.
34
34
We recommend ``gcc`` and ``gfortran`` which can be installed via the package manager for your operating system.
35
35
@@ -38,12 +38,8 @@ Python dependencies are automatically handled by ``pip``, so they do not need to
38
38
39
39
.. note::
40
40
* In Linux, the python header files (``python-dev``) are also required.
41
-
* **We do not support operating systems other than Linux.**
42
-
For macOS users, the conda package may work out of the box if you do not need any non-default optimizers.
43
-
Also, the installation script by OpenMDAO likely works on macOS.
44
-
For Windows users, a conda package is on the way, if it's not already in the repos.
45
-
This comes with the same disclaimer as the macOS conda package.
46
-
Alternatively, follow the :ref:`conda build instructions<conda build instruction>` below as this will work on any platform.
41
+
* **We do not support operating systems other than Linux** for building from source.
42
+
For those on other operating systems, you can try the :ref:`conda build instructions<conda build instruction>` instead.
47
43
48
44
Installation
49
45
~~~~~~~~~~~~
@@ -61,8 +57,6 @@ For those not using virtual environments, a user install may be needed
61
57
62
58
pip install . --user
63
59
64
-
If you plan to modify pyOptSparse, installing with the developer option, i.e. with ``-e``, will save you from re-installing each time you modify the Python code.
65
-
66
60
.. note::
67
61
Some optimizers are proprietary, and their sources are not distributed with pyOptSparse.
68
62
To use them, please follow the instructions on specific optimizer pages.
@@ -122,11 +116,7 @@ The first thing to do is to do a clean install.
122
116
This involves the following steps:
123
117
124
118
#. Uninstall the package via ``pip``
125
-
#. If you did a developer install (with ``-e``), check if there are ``.so`` files in the subdirectories, e.g. ``pyoptsparse/pySLSQP``.
126
-
If so, manually delete all ``.so`` files.
127
-
#. Remove the ``meson_build`` directory if present.
128
-
#. Run ``pip install`` again and test the installation.
129
-
119
+
#. Run ``pip install .`` again and test the installation.
130
120
131
121
If the issue persists, there is probably a linking or runtime issue.
132
122
This can be verified by manually importing the compiled library that's causing the issue, for example with:
@@ -142,7 +132,7 @@ If, on the other hand, this throws a ``error while loading shared libraries``, t
142
132
143
133
Update or Uninstall
144
134
-------------------
145
-
To update pyOptSparse, first delete the ``meson_build`` directory, then update the package using ``git``.
135
+
To update pyOptSparse, first update the package using ``git``.
146
136
For stability, users are encouraged to stick to tagged releases.
0 commit comments