"Python Learning Note-00" Learning Method-Environment Installation Chapter-pycharm installation and use

Source: Internet
Author: User
Tags pycharm download

# # # # # # This article mainly includes the following knowledge points:
-1.Python Learning Methods
-2.python Installation
-2.1. Installing on Windows
-2.2. Install on Linux
-3.pycharm Installation and use
-3.1. Install and use on Windows
-3.2. Install and use on Ubuntu


<!--more-->

# # 1.python Learning Methods
The purpose of our study is to apply knowledge, how to use it, one is to grasp the theoretical points, the second is the practice of theoretical knowledge, so as to deepen our understanding of theoretical knowledge, but also to enhance our knowledge of using skills.

Theory does not pass practice, practice does not pass theory. When we are difficult to understand the theoretical knowledge, perhaps the knowledge to practice, we can understand. Sometimes, when we do practice, will encounter a variety of problems, it is likely that the theoretical knowledge is too short, and hurriedly fill.

First of all, the theoretical knowledge of learning, there are good ways:
-Learn the knowledge points and organize them into documents according to your own routines.
Knowledge can not be learned once mastered, we need to learn and time, restudying. According to their own routines to organize the knowledge points, after finishing and carding, one can deepen memory and understanding, the second is to facilitate our restudying, when we forget, can quickly locate, recall the previous learning impression

-Multi-draw flowchart and mind Mapping
The flowchart is important for us to understand the knowledge points and logical relationships, and it is recommended to draw your ideas into a flowchart before writing the code, and then write the code. Mind map, we can organize the knowledge points into mind map, convenient memory mastery.

Then look at the practice, there are good ways:
-Practice, we can do experiments, write small programs, write projects, these are the way of practice
-Practice can also have a routine, such as: clear the purpose of the practice, make a flowchart or structure diagram, follow the flowchart to achieve, record the realization of the process, organized into documents, summed up the practice: What harvest, what problems encountered, how to solve and so on.

Common approach:
-Find more experienced old drivers
-Cherish time, seize time, persist in learning
-Pending additions


----------


# # 2.Python Installation
# # # 2.1.Windows installed on
The latest version of the current official recommended download is: 2.7.12 and 3.5.2
2.7.12: [Https://www.python.org/ftp/python/2.7.12/python-2.7.12.amd64.msi][1]
3.5.2: [Https://www.python.org/ftp/python/3.5.2/python-3.5.2-amd64.exe][2]

##### Installing Python2.7.12:
! [Qq20161015022307.png] [3]

! [Qq20161015022319.png] [4]

! [Qq20161015022400.png] [5]

##### Installing Python3.5.2:
! [Qq20161015015620.png] [6]

! [Qq20161015015657.png] [7]

! [Qq20161015015712.png] [8]

! [Qq20161015015731.png] [9]

! [Qq20161015021621.png] [10]

We make some changes, change ' C:\Python35\python.exe ' to ' python3.exe ', so we enter Python under cmd by default is Python2, input python3, use Python3.
Also, the ' C:\Python35\Scripts\pip.exe ' file is deleted so that the default Pip call is Python2, and the input PIP3 is the PIP that calls Python3.
Also, we need to update the Python3 PIP, which can be used normally: The following is the code under CMD
```
C:\users\chmod>pip-v
Pip 8.1.1 from C:\python27\lib\site-packages (Python 2.7)

C:\users\chmod>pip3-v
Fatal error in launcher:unable to create process using ' "'

c:\users\chmod>python-m Pip install-u pip

C:\users\chmod>pip3-v
Pip 8.1.2 from C:\python35\lib\site-packages (Python 3.5)
```


# # # 2.2.Linux installed on
My environment here is: VMware workstations + centos6.5_x86_64, the system comes with Python 2.6.6.
Install 2.7.12 and 3.5.2 version here, and set ' yum ' to continue using Python2.6 version, Python default version is 2.7.12

# # # Installation dependencies:
```
[Email protected] ~]# yum-y install Readline-devel
#如果没有安装这个依赖, when you are finished installing Python, enter a carriage return, left and RIGHT arrow keys:
[[email protected] ~]# python
Python 2.7.12 (default, OCT 14 2016, 03:51:28)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>> ^h^h^h^[[c^[[c^[[d^[[d
#如果你安装完Python才发现, this dependency is missing, it can only install this dependency, and then recompile the installation of Python.
#重新编译安装Python, you need to cut to the source directory make clean and then install in make && make
```

# # # Download and compile the installation
```
[Email protected] data]# wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
[Email protected] data]# wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
[Email protected] data]# TAR-ZXVF python-2.7.12.tgz
[Email protected] data]# CD Python-2.7.12
[Email protected] python-2.7.12]#./configure
[[email protected] python-2.7.12]# make && make install
[Email protected] data]# TAR-ZXVF python-3.5.2.tgz
[Email protected] python-3.5.2]#./configure
[[email protected] python-3.5.2]# make && make install
[Email protected] python-3.5.2]# Python3 #安装Python3.5.2
Python 3.5.2 (default, OCT 14 2016, 03:40:41)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on Linux
Type "Help", "copyright", "credits" or "license" for more information.
>>> exit ()
```

# # # # Set Yum to continue using Python2.6 version, Python default version changed to 2.7.12
```
[Email protected] ~]# mv/usr/bin/python/usr/bin/pythonold #修改2.6.6 Version Name
[Email protected] ~]# Vim/usr/bin/yum #修改yum继续使用Python2.6.6
[Email protected] ~]# head-1/usr/bin/yum
#!/usr/bin/pythonold
[Email protected] ~]# #设置Python2.7.12 is the Python default program
[Email protected] ~]# ln-s/usr/local/bin/python2.7/usr/bin/python
[[email protected] ~]# python
Python 2.7.12 (default, OCT 14 2016, 03:51:28)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>>
```
OK, until this python installation is complete.

# # # on the virtual machine system, install the upload download tool
If you find that the download Python source code package is too slow, you can use Thunderbolt to download to the local, and then upload to the virtual machine on the Linux system. After using Xshell to connect Linux system, install ' lrzsz ' tool, can upload files and download files conveniently, use ' RZ ' command to upload, use ' sz filename ' to download.
Install the ' Lrzsz ' tool:
```
[Email protected] ~]# mount/dev/sr0/mnt #挂载centos系统镜像包
Mount:block Device/dev/sr0 is write-protected, mounting read-only
[Email protected] ~]# rpm-ivh/mnt/packages/lrzsz-0.12.20-27.1.el6.x86_64.rpm
```


# # 3.pycharm Installation and use
# # # 3.1.pycharm Installation
Pycharm download: [download][11]

Installing on Windows


[1]: Https://www.python.org/ftp/python/2.7.12/python-2.7.12.amd64.msi
[2]: Https://www.python.org/ftp/python/3.5.2/python-3.5.2-amd64.exe
[3]: Http://www.xsy.me/usr/uploads/2016/10/1417320578.png
[4]: Http://www.xsy.me/usr/uploads/2016/10/2447437101.png
[5]: Http://www.xsy.me/usr/uploads/2016/10/2908090112.png
[6]: Http://www.xsy.me/usr/uploads/2016/10/4035710106.png
[7]: Http://www.xsy.me/usr/uploads/2016/10/480861818.png
[8]: Http://www.xsy.me/usr/uploads/2016/10/1540077613.png
[9]: Http://www.xsy.me/usr/uploads/2016/10/781456494.png
[Ten]: Http://www.xsy.me/usr/uploads/2016/10/558234437.png
[One]: http://www.jetbrains.com/pycharm/download/#section =windows

This article is from the "Shaolin Wan Yun Road" blog, please be sure to keep this source http://shaoyange.blog.51cto.com/12146264/1865245

"Python Learning Note-00" Learning Method-Environment Installation Chapter-pycharm installation and use

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.