01. restore the original setting of PyCharm
PyCharm configuration information is stored in the .PyCharmxxxx.x directory under the user's home directory, xxxx.x represent PyCharm version currently used
To restore the original setting PyCharm can be made by following these steps:
1. Close running PyCharm
2. Execute the following command in the terminal end, delete the configuration directory PyCharm of:
$ rm -r ~/.PyCharm2016.3
3. Restart PyCharm
02. The first time you start PyCharm
Import Configuration Information
Select License Agreement
The initial configuration interface
2.1 Import Configuration Information
When you first start PyCharm, will first be prompted to configure whether the user information prior to import
If this is the first time, click on the OK button
2.2 Select License agreement
PyCharm is a paid software, the purchase price is $ 199 / year or $ 19.90 / month
But PyCharm provides a free version for students and teachers to use
Download address is: https: //www.jetbrains.com/pycharm-edu/download/#section=linux
Commercial versions will be prompted to enter your registration information, or choose a free evaluation
2.3 PyCharm initial configuration interface
In the initial configuration interface, color schemes can be selected by the editor Editor colors and fonts
2.4 Welcome Screen
After the end of all the basic configuration to work, you can see PyCharm welcome screen, and you can begin to develop Python project through the welcome screen
03. Create / Open a Python project
3.1 Project
Development project is to develop a special function to solve a complex business software
Usually, each project will have a separate dedicated directory for storing all project-related documents
A project usually contains several files
3.2 Open Python project
Click on the Open button, and then browse to the directory Python file before saving, either open the project
After opening, will create a new directory in the directory .idea for information related to preservation projects, such as: Interpreter version, the project contains files, etc.
The first time you open the project, the project needs to be patient PyCharm initial setup
Interpreter version used project settings
If it is not the project directory created by PyCharm open directory, the interpreter version sometimes using Python 2.x, you need to set up a separate version of the interpreter
Via File / Settings ... to open the setup window, as shown below:
3.3 New Project
1) naming convention
After the previous project names be numbered, with the knowledge point increments number is incremented
For example: 01_Python basis, 02_ branch, 03_ cycle ...
The file name under each project in order to point the way to name the knowledge hm_xx_
Where xx is a number of drill file
note
It recommends using only lowercase letters, numbers and underscores 1. Name the file name
2. File name can not start with a number
You can create a new project by the welcome screen or menu File / New Project
2) Step drills
New 01_Python infrastructure projects, using the Python 3.x interpreter
New hm_01_hello.py Python files in the project
Write print ( "Hello Python") Code
04. Set the font PyCharm
05. PyCharm upgrades and other
PyCharm provides a free version for students and teachers to use
Education Edition Download: https: //www.jetbrains.com/pycharm-edu/download/#section=linux
Pro Download: https: //www.jetbrains.com/pycharm/download/#section=linux
5.1 Installation and start-up procedure
1. After a terminal execute the following command to extract the installation package download
$ tar -zxvf pycharm-professional-2017.1.3.tar.gz
2. The decompressed directory moved to / opt directory, other users can easily
/ Opt directory to store the user to install additional software host
$ sudo mv pycharm-2017.1.3/ /opt/
3. Change the working directory
$ cd /opt/pycharm-2017.1.3/bin
4. Start PyCharm
$ ./pycharm.sh
5.2 Professional Edition startup icon set
In the Professional Edition, select the menu Tools / Create Desktop Entry ... you can set the Taskbar icon to start
Note: When setting the icon, you need to check the Create the entry for all users
Before uninstalling version 5.3 of PyCharm
1) installation
1. The program files directory
The installation package is decompressed, and is moved to the / opt directory
All the files are saved in uncompressed directory
2. profile directory
After starting PyCharm, creates a hidden directory .PyCharmxxx in the user's home directory
Save configuration information related to PyCharm
3. The shortcut file
/usr/share/applications/jetbrains-pycharm.desktop
In ubuntu, the application starts shortcuts are usually stored in / usr / share / applications directory
2) Uninstall
To uninstall PyCharm only need to do the following two steps:
Delete unzipped directory
$ sudo rm -r /opt/pycharm-2016.3.1/
2. Delete the home directory under a hidden directory for saving the configuration information
$ rm -r ~/.PyCharm2016.3/
If no further need to use PyCharm jetbrains-pycharm.desktop / usr / share / applications / deleted at
5.4 Education Edition installation walkthrough
# 1. decompressed download the package
$ Tar -zxvf pycharm-edu-3.5.1.tar.gz
Moving the directory # 2 'will decompress / opt` the directory, other users can easily
$ sudo mv pycharm-edu-3.5.1/ /opt/
# 3. Start `PyCharm`
/opt/pycharm-edu-3.5.1/bin/pycharm.sh
Follow-up courses are using the Professional version walkthrough
Set the startup icon
1. Edit the shortcut file
$ sudo gedit /usr/share/applications/jetbrains-pycharm.desktop
3. The following contents modify files, you need to pay attention to specify the correct directory pycharm
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm
Icon=/opt/pycharm-edu-3.5.1/bin/pycharm.png
Exec="/opt/pycharm-edu-3.5.1/bin/pycharm.sh" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm
————————————————
Disclaimer: This article is the original article CSDN bloggers "MuNian123", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_42370150/article/details/103540254