In general practical work, development code on Windows, code runs on Linux, so say two ways to install Python:
Windows:
Download the installation package: https://www.python.org/downloads/
Recommended Download 3. x version, default installation directory here for C:\python35
Version 3.x, there will be an option to automatically add environment variables when installing:
If you forget to check, you can add the following methods:
To configure environment variables:
Computer Properties--Advanced system settings--advanced--environment variables--Find a row with the variable named path open the-->python installation directory appended to the variable value with a semicolon;
Linux:
The CentOS 6.x system default system CD comes with Python, but its version is 2. X, we need to install the 3.x version in extra
1 # yum install gcc-y \ \ Installs gcc for compiling Python code 2 # wget HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/3.5.3/PYTHON-3.5.3.TAR.XZ 3 # t AR XF PYTHON-3.5.3.TAR.XZ 4 # CD Python-3.5.3 5 #./configure--prefix=/usr/local/python35 6 # make all && do in Stall 7 # python-v \ \ View the current Python default version, if the version does not match the installed version, you need to change 8 # mv/usr/bin/python/usr/bin/python27 9 # ln-s/usr/local/ BIN/PYTHON35/USR/BIN/PYTHON10 # Vim/usr/bin/yum \ \ To prevent Yum from performing exceptions, modify the Python version used by Yum by default #!/usr/bin/python35
Pycharm Simple to use
Pycharm is a pythonide with a complete set of tools to help users improve their efficiency when developing with the Python language, such as debugging, syntax highlighting, project management, code jumps, smart tips, AutoComplete, unit tests, versioning. In addition, the IDE provides advanced features to support professional web development under the Django framework.
Pychram Download
Official website: http://www.jetbrains.com/pycharm
windows:http://www.jetbrains.com/pycharm/download/#section =windows
linux:http://www.jetbrains.com/pycharm/download/#section =linux
mac:http://www.jetbrains.com/pycharm/download/#
modifying templates
Description: The first line specifies the Python path, the second line, specifies the encoding format of the script, the PY3 version does not need to be specified, but py2 needs to be specified, in order to be compatible.
Version switching
If a 2.x version or other version is installed, you can add it from here
Character encoding modification to avoid garbled characters
Font settings
Using pulleys to adjust display size
Python Environment setup