Chapter One: Setting up a python development environment under Ubuntu

Source: Internet
Author: User
Tags sublime text

First, install the Python3

ubuntu itself is installed Python2, for example, in Ubuntu 16.04 is installed in the python2.7. But I want to develop in python3 environment, so I will install Python3. But because Ubuntu has many low-level uses python2 so in the installation Python3 is unable to uninstall Python2. Execute the following command line:

sudo cp/usr/bin/python/usr/bin/python_bak

sudo rm/usr/bin/python

sudo ln-s/usr/bin/python3.5/usr/bin/python

Then enter Python to check if the version is correct (the version should be python3.5)

Second, installation sublime Text 3

As the saying goes 工欲善其事 its prerequisite, in the development of Python must first select a good editor. Sublime Text 3 is a lightweight, cross-platform textual editor. Can be installed on ubuntu,windows and Mac OS x advanced text editing software, there is a proprietary license, but the program can also be used free of charge, do not need to do reverse engineering. If you want to have a more advanced version available for a fee.

Open terminal and enter the following command:

   sudo add-apt-repository ppa:webupd8team/sublime-text-3
   sudo apt-get update
   sudo apt-get install sublime-text-installer

Uninstall the sublime text command:

   sudo apt-get remove sublime-text-installer

This time you will find that the desktop does not appear sublime Text 3, then how do we open it? Enter SUBL from the terminal to start the Sublime-text and lock it directly to the sidebar after booting.

Chapter One: Setting up a python development environment under Ubuntu

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.