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
Copy file name to clipboardExpand all lines: README.rst
+35-20Lines changed: 35 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -77,22 +77,25 @@ and as part of `PyMCon 2020 <https://discourse.pymc.io/c/pymcon/2020talks/15>`__
77
77
Installation
78
78
============
79
79
80
-
The latest release of PyMC3 can be installed from PyPI using ``pip``:
80
+
PyMC3 Installation
81
+
------------------
81
82
82
-
::
83
+
The latest release of PyMC3 can be installed from Conda Forge (conda-forge):
83
84
84
-
pip install pymc3
85
+
::
85
86
86
-
**Note:** Running ``pip install pymc`` will install PyMC 2.3, not PyMC3,
87
-
from PyPI.
87
+
conda install -c conda-forge pymc3
88
88
89
-
Or via conda-forge:
89
+
While strongly discouraged due to installation problems you could try to install PyMC3 and its dependencies via PyPI using ``pip``:
90
90
91
91
::
92
92
93
-
conda install -c conda-forge pymc3
93
+
pip install pymc3
94
94
95
-
Plotting is done using `ArviZ <https://arviz-devs.github.io/arviz/>`__ - if you follow the installation instructions above, then it will be installed alongside ``PyMC3``.
95
+
The reason installation via PyPI is difficult, especially on Windows and OSX, is that `Theano` requires compilation against MKL, which is difficult to set up, while Conda comes with its own compilers and MKL installation.
96
+
.. note::
97
+
98
+
Running ``pip install pymc`` will install PyMC 2.3, not PyMC3, from PyPI.
96
99
97
100
The current development branch of PyMC3 can be installed from GitHub, also using ``pip``:
98
101
@@ -101,29 +104,41 @@ The current development branch of PyMC3 can be installed from GitHub, also using
However, if a recent version of Theano has already been installed on
114
-
your system, you can install PyMC3 directly from GitHub.
131
+
.. note::
132
+
If you already have `Theano-PyMC <https://github.com/pymc-devs/Theano-PyMC>`__ installed, then re-install the module, as such
115
133
116
-
Another option is to clone the repository and install PyMC3 using
117
-
``python setup.py install`` or ``python setup.py develop``.
134
+
``conda remove theano-pymc -y``
118
135
136
+
``conda install -c conda-forge theano-pymc -y``
119
137
120
-
Dependencies
121
-
============
138
+
Arviz Installation
139
+
------------------
122
140
123
-
PyMC3 is tested on Python 3.6, 3.7, and 3.8 and depends on `Theano-PyMC <https://github.com/pymc-devs/Theano-PyMC>`__,
124
-
NumPy, SciPy, and pandas
125
-
(see `requirements.txt <https://github.com/pymc-devs/pymc3/blob/master/requirements.txt>`__ for version
126
-
information).
141
+
Plotting is done using `ArviZ <https://arviz-devs.github.io/arviz/>`__ - if you follow the installation instructions above, then it will be installed alongside ``PyMC3``.
0 commit comments