-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Docs - Update PyMC3 Installation focus via Conda Forge #4401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e098482
361e1b0
ff9dea8
3f94ed9
1d6fba2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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>`__ | |
Installation | ||
============ | ||
|
||
The latest release of PyMC3 can be installed from PyPI using ``pip``: | ||
PyMC3 Installation | ||
------------------ | ||
|
||
:: | ||
The latest release of PyMC3 can be installed from Conda Forge (conda-forge): | ||
|
||
pip install pymc3 | ||
:: | ||
|
||
**Note:** Running ``pip install pymc`` will install PyMC 2.3, not PyMC3, | ||
from PyPI. | ||
conda install -c conda-forge pymc3 | ||
|
||
Or via conda-forge: | ||
While strongly discouraged due to installation problems you could try to install PyMC3 and its dependencies via PyPI using ``pip``: | ||
|
||
:: | ||
|
||
conda install -c conda-forge pymc3 | ||
pip install pymc3 | ||
|
||
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``. | ||
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. | ||
.. note:: | ||
CloudChaoszero marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Running ``pip install pymc`` will install PyMC 2.3, not PyMC3, from PyPI. | ||
|
||
The current development branch of PyMC3 can be installed from GitHub, also using ``pip``: | ||
|
||
|
@@ -101,29 +104,41 @@ The current development branch of PyMC3 can be installed from GitHub, also using | |
pip install git+https://github.com/pymc-devs/pymc3 | ||
|
||
To ensure the development branch of Theano is installed alongside PyMC3 | ||
(recommended), you can install PyMC3 using the ``requirements.txt`` | ||
file. This requires cloning the repository to your computer: | ||
(recommended), see the Theano Installation section, below. | ||
|
||
Lastly, another option is to clone the repository and install PyMC3 using | ||
``python setup.py install`` or ``python setup.py develop``. | ||
|
||
Theano Installation | ||
------------------- | ||
|
||
PyMC3 is tested on Python 3.6, 3.7, and 3.8 and depends on `Theano-PyMC <https://github.com/pymc-devs/Theano-PyMC>`__, | ||
NumPy, SciPy, and pandas | ||
(see `requirements.txt <https://github.com/pymc-devs/pymc3/blob/master/requirements.txt>`__ for version | ||
information). | ||
|
||
That being said, you can install PyMC3 using the ``requirements.txt`` | ||
file. | ||
|
||
This requires cloning the repository to your computer: | ||
|
||
:: | ||
|
||
git clone https://github.com/pymc-devs/pymc3 | ||
cd pymc3 | ||
pip install -r requirements.txt | ||
|
||
However, if a recent version of Theano has already been installed on | ||
your system, you can install PyMC3 directly from GitHub. | ||
.. note:: | ||
If you already have `Theano-PyMC <https://github.com/pymc-devs/Theano-PyMC>`__ installed, then re-install the module, as such | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should say that it now requires Theano-PyMC instead of just the old Theano, and that if the old Theano is installed, they just remove that and install Theano-PyMC via conda-forge. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @twiecki Sounds great, I think I made the appropriate changes. Moreover, I changed the sub-bulletin title of the Let me know what you think. |
||
|
||
Another option is to clone the repository and install PyMC3 using | ||
``python setup.py install`` or ``python setup.py develop``. | ||
``conda remove theano-pymc -y`` | ||
|
||
``conda install -c conda-forge theano-pymc -y`` | ||
|
||
Dependencies | ||
============ | ||
Arviz Installation | ||
------------------ | ||
|
||
PyMC3 is tested on Python 3.6, 3.7, and 3.8 and depends on `Theano-PyMC <https://github.com/pymc-devs/Theano-PyMC>`__, | ||
NumPy, SciPy, and pandas | ||
(see `requirements.txt <https://github.com/pymc-devs/pymc3/blob/master/requirements.txt>`__ for version | ||
information). | ||
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``. | ||
|
||
Optional | ||
-------- | ||
|
Uh oh!
There was an error while loading. Please reload this page.