Essence of machine learning Python, mathematics, algorithms learned while implementing
In reading this book, a memo when building the Jupyter Lab environment on macOS Mojave (10.14.6) using pip.
It is assumed that Homebrew Python 3 is installed. The version is 3.7.5.
$ python3 --version
Python 3.7.5
Prepare a working directory and a Python virtual environment.
mkdir /path/to/ml
cd /path/to/ml
python3 -m venv venv
Update pip on the virtual environment and install the required modules.
source ./venv/bin/activate
pip install --upgrade pip
pip install jupyterlab
pip install matplotlib
Start Jupyter Lab and check.
jupyter lab
Go to your working directory, activate your virtual environment and run the command.
cd /path/to/ml
source ./venv/bin/activate
jupyter lab
Recommended Posts