Following the book Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd Edition, Aurélien Géron
Creating the virtual environment
mgarcia@mordor:~/Documents/Work/HandsOnMachineLearn$ python3 -m venv venv
Activate the environment
PS C:\Users\garcm0b\Work\HandsOnMachineLearn> . .\venv\Scripts\activate
And installing the requeriments
(venv) mgarcia@arda:~/Documents/HandsOnMachineLearn$ pip install -U jupyterlab matplotlib numpy pandas scipy scikit-
learn
(venv) mgarcia@arda:~/Documents/HandsOnMachineLearn$ pip freeze > requirements.txt
Start jupyter-lab
(venv) mgarcia@arda:~/Documents/HandsOnMachineLearn$ jupyter-lab