The fact is, since we are running everything within the “py27” conda environment, it is suggested that you install any new python 2.7 packages also within this environment, e.g. Installing jupyter notebook on python 2.7. If you now launch jupyter notebook from your terminal, you shall be able to see this “Python2.7” kernel right below the original one, usually named “Python 3”.Īlthough we’ve finished creating the python 2.7 kernel, there’s still something to carry in one’s mind. Use pip3 to install: pip3 install -upgrade pip pip3 install jupyter jupyter notebook to start jupyter notebook I highly recommend installing Anaconda. Where we name the new python 2.7 kernel as “Python2.7”, which again can be named differently. (py27) python -m ipykernel install -name Python2.7 Once you have pip, you can just run the below command to install a Jupyter Notebook, which would take a while to install. Let's upgrade that: On Windows python -m pip install -U pip setuptools On OS X or Linux pip3 install -U pip setuptools. Where we name the new environment as “py27”. From the above output, you can see that we have pip version 20.2.1.
We need, of course, a brand new python 2.7 installed. In that case, the scripts would be conda uninstall setuptools In case of error concerning setuptools, you may reinstall it before the update.
#Pip install jupyter notebook python 2 update#
It can be tricky when someone asks you to use Python 2.7 in a jupyter notebook nowadays, but not impossible: Up-to-Date Anacondaīefore we start installing anything, let’s update anaconda.
Adding a Python 2.7 Kernel in Jupyter - Allen's Whiteboard