Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ source whynot-env/bin/activate
pip install whynot
```

WhyNot requires Python 3.12 or newer. On an older Python, `pip` skips the
current release and falls back to WhyNot versions from 2020, which fail to
build with an error about `sklearn` that does not mention the Python version.
If you see that, check `python --version` first.

You can also install WhyNot directly from source.
```
git clone https://github.com/socialfoundations/whynot.git
Expand Down
11 changes: 9 additions & 2 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ Installation
Basic Installation Instructions
-------------------------------

WhyNot supports Python3 on both OS X and Linux systems. We recommend using `pip`
for installation and isolating the installation inside a `virtualenv`_.
WhyNot requires Python 3.12 or newer, on both OS X and Linux systems. We
recommend using `pip` for installation and isolating the installation inside a
`virtualenv`_.

.. note::
On an older Python, ``pip`` skips the current release and falls back to
WhyNot versions from 2020, which fail to build with an error about
``sklearn`` that does not mention the Python version. If you see that,
check ``python --version`` first.

1. (Optionally) create a virtual environment.

Expand Down
Binary file removed whynot/simulators/opioid/.experiments.py.swo
Binary file not shown.
Loading