-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put install instructions in a separate tab in online doc
NB: install.md is put in docs/ directory rather than in docs/guide so that when clicking on install tab, only this one is highlighted and not the "guide" one.
- Loading branch information
Showing
3 changed files
with
57 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Installation | ||
|
||
## 1. Make sure to have a Python 3.7+ environment | ||
|
||
The use of a virtual environment for scikit-decide is recommended, and you will need to ensure the environment use a Python version greater than 3.7. | ||
This can be achieved either by using [conda](https://docs.conda.io/en/latest/) or by using [pyenv](https://github.com/pyenv/pyenv) (or [pyenv-win](https://github.com/pyenv-win/pyenv-win) on windows) | ||
and [venv](https://docs.python.org/fr/3/library/venv.html) module. | ||
|
||
The following examples show how to create a virtual environment with Python version 3.8.11 with the mentioned methods. | ||
|
||
### With conda (all platforms) | ||
|
||
```shell | ||
conda create -n skdecide python=3.8.11 | ||
conda activate skdecide | ||
``` | ||
|
||
### With pyenv + venv (Linux/MacOS) | ||
|
||
```shell | ||
pyenv install 3.8.11 | ||
pyenv shell 3.8.11 | ||
python -m venv skdecide-venv | ||
source skdecide-venv | ||
``` | ||
|
||
### With pyenv-win + venv (Windows) | ||
|
||
```shell | ||
pyenv install 3.8.11 | ||
pyenv shell 3.8.11 | ||
python -m venv skdecide-venv | ||
skdecide-venv\Scripts\activate | ||
``` | ||
|
||
## 2. Install scikit-decide library | ||
|
||
### Full install [Recommended] | ||
|
||
Install scikit-decide library from PyPI with all dependencies required by domains/solvers in the hub (scikit-decide catalog). | ||
```shell | ||
pip install -U pip | ||
pip install -U scikit-decide[all] | ||
``` | ||
|
||
### Minimal install | ||
Alternatively you can choose to only install the core library, which is enough if you intend to create your own domain and solver. | ||
```shell | ||
pip install -U pip | ||
pip install -U scikit-decide | ||
``` |