Skip to content

Commit 9a37a98

Browse files
committed
Adding virtual environment instructions
1 parent c6970da commit 9a37a98

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,44 @@ cd bayesian-optimization
4747
```
4848

4949
## Install required libraries in a virtual environment
50+
You need to install the dependencies before running the notebooks.
5051

52+
### Using conda
53+
54+
If you don't have conda installed already and want to use conda for environment management, you can install the miniconda as [described here](https://docs.conda.io/projects/miniconda/en/latest/miniconda-install.html).
55+
56+
- Create a conda env with `conda create -n bo-tutorial python=3.10`
57+
- Activate the environment with `conda activate bo-tutorial`
58+
- Install the required packages via `pip install -r requirements.txt`.
59+
60+
### Using venv only
61+
62+
If you do not have conda installed:
63+
64+
Alternatively, you can create the virtual env with `venv` in the standard library
65+
66+
```bash
67+
python -m venv nn-tutorial
68+
```
69+
70+
and activate the env with `source <venv>/bin/activate` (bash) or `C:> <venv>/Scripts/activate.bat` (Windows)
71+
72+
Then, install the packages with pip within the activated environment
73+
74+
```bash
75+
python -m pip install -r requirements.txt
76+
```
77+
78+
Afterwards, you should be able to run the provided notebooks.
79+
80+
## Running the tutorial
81+
82+
After installing the package
83+
84+
You can start the jupyterlab in the terminal, and it will start a browser automatically
85+
86+
```bash
87+
jupyter lab
88+
```
89+
90+
Alternatively, you can use supported Editor to run the jupyter notebooks, e.g. with VS Code.

0 commit comments

Comments
 (0)