How To Install Jupyter Notebook Using PIP
Jupyter notebooks are pretty much necessary to get going with data science using python or R.
Here is the way you can install it using PIP
Step 1: Create a virtual environment.
Run following command in the command prompt.
pip install virtualenv
This will install a package called virtualenv, which can be used to create a virtual environment.
To make sure that virtualenv was installed successfully, run following command.
virtualenv --version
Good! Now let’s create a virtual environment.
virtualenv virtualenv_name
It is as simple as that!!
I highly prefer using git bash(If you are using windows).
Now that you have created the virtual environment, you can activate it by…..
$ source ml_env/Scripts/activate
If there is the name of virtual environment you just created in the brackets, then the environment is activated and you are good to go!
Step2: Installing Jupyter lab and jupyter notebook
First, we need to make sure that you have IPyKernel installed.
Use the command…
pip install ipykernel
To install it.
Then its time to install Jupyterlab.
Run…
pip install jupyterlab
Woohoo!! You can now open up Jupyter lab and run python notebooks.
Next step is to finally install Jupyter notebook.
pip install notebook
And done!!
Fire up jupyter notebook!
Notebook generally opens on Pout 8888, so make sure that other software won’t clash with it.
If you are facing any problems, please mention them in the comment…..
Thank you!