Ubuntu Desktop 16.04 LTS successfully configured the Jupyter two Python kernel version (2.7x,3.5x)

Source: Internet
Author: User
Tags jupyter jupyter notebook jupyter python

Ubuntu Desktop 16.04 LTS installed system by default Python has two different versions (2.7.12 and 3.5.2)

Now familiarize yourself with the kernel configuration process for the two different Python versions of Jupyter python:

1. Download the different Python kernel versions separately

The command is as follows:

sudo pip2 install Ipykernel

sudo pip3 install Ipykernel

2. Install a different Python kernel version

The command is as follows:

sudo python2-m ipykernel install--user

sudo python3-m ipykernel install--user

3. Configure a different Python kernel version

Configuration commands for Python2:

sudo jupyter kernelspec install/usr/bin/(python2 path can be viewed by which python2 command)

Configuration commands for Python3:

sudo jupyter kernelspec install/usr/local/bin/(python3 path can be viewed by which Python3 command)

4. Start Jupyter Notebook

sudo jupyter notebook--allow-root

This will allow you to see two different versions of the Python kernel version

Ubuntu Desktop 16.04 LTS successfully configured the Jupyter two Python kernel version (2.7x,3.5x)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.