Steps for compiling and installing the Python environment in Ubuntu

Source: Internet
Author: User
Tags versions python script

Introduction

By default, Ubuntu System (16.04) has installed the most basic Python components, but the function is not complete, this article describes how in the Ubuntu system to complete the installation of the Python environment, the second half of the article will introduce a very useful Python integrated development environment wingide.

Article catalog

1 to [Python official website]downloads page, download the latest Python source code, currently (2016) Python has two major versions, Python2 and Python3, two versions are not compatible, please choose different versions according to their own needs, This paper takes Python3 for example.

2 after entering the download page, select the "gzipped source tarball" option in the "Files" list, the download will be a. tgz compressed file.

3 Open the terminal, switch to the download directory, the following method to extract the installation:

#1. If the compilation component has not been installed before, perform the following command, which installs the required components such as gcc,make,g++
www@qingsword.com:~/$ sudo apt-get install build-essential

#2. Unzip the Python source pack that you just downloaded (this article I downloaded the zip package to the native home directory, and if you download to another directory, switch to the corresponding directory, when this article is complete, the latest Python version is 3.5.2)
www@qingsword.com:~/$ Tar-vxzf python-3.5.2.tgz

#3. Enter Directory compilation installation
www@qingsword.com:~/$ CD Python-3.5.2
www@qingsword.com:~/python-3.5.2/$ sudo./configure && sudo make && sudo make test && sudo Stall

Installation and crack of 0x2.wingide

Wingide can run on Windows,linux and MacOS, please download different versions according to your system, this article uses Ubuntu system for example, the crack method also applies to other systems.

1 to [Wingide official website] To download the latest version, when this article is completed, the latest version of 5.1.12, recommended to download 64-bit Deb package.

2 Switch to download directory, install:

www@qingsword.com:~/$ sudo dpkg-i wingide5_5.1.12-1_amd64.deb
3 in the Ubuntu Search key Wing, or in the terminal input Wing[tab] (tab for Keyboard tab key, will automatically fill wing version number), run Wingide

4 Wingide is the charging software, installation Wingide after the success of the launch, the activation of the input license ID cn123-12345-12345-12345, and then download this py script for the calculation of activation code [Baidu Network Disk http://pan.baidu.com /S/1HRXEA9Y]


5 Click Continue, copy "request Code", with a text editor to open just download the py script file, as shown in the following figure to fill in the corresponding area "request Code":


6 after saving, execute this Python script, get Activation code, fill in the text box in Figure 3 above, complete the activation

#请注意, the activation code for different machines is not the same, and the following is the computed activation code on my machine.
www@qingsword.com:~/$ python calcactivationcode.py
The activation Code is:axx28-64xqx-g4y6t-b691l
Wingide function is very powerful, can breakpoint debugging, single-step tracking, monitoring variable status, etc., using the same method as Microsoft's vs very similar.

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.