pycharm install and set up the environment - Community Edition

pycharm installation

1, package download path pycharm

pycharm Download: https://www.jetbrains.com/pycharm/download/#section=windows

You can download the Community Edition, Professional Edition requires an activation code

2, installation pycharm

1) The first step, just click Next;
2) The second step, if you want to modify the installation path, change is here:


3) The third step requires some setup, no special need to follow if you figure check to:

If you have special needs, be sure to check whether the setting is described as follows:
  1. Create Shortcut: based on your current system is 32-bit or 64-bit selection;
  2. Add the pycharm startup directory to the environment variable (restart required), if you need to use the command-line operation pycharm, this option is checked;
  3. Add the right mouse button menu, use the Open Project to open the folder. If you often need to download some other people's code view, you can check this option, it will increase the options right mouse button menu;
  4. Py files to associate all pycharm, that is, you double your py files on your computer, use pycharm open the default. Not recommended to check, pycharm every time you open the speed will be slower. You have to open a separate py files, we recommend using notepad ++ and other text editor, open faster;
  5. JetBrains comes installed JRE. If your computer has been installed JAVA version 1.8 or higher, and you have configured the environment variables, you can not check this. If not, check on (if you do not know in the end equipment never installed JAVA, then check on it)

4) The fourth step, the default, click install.
If you checked, you want to install built-in JRE, will appear the following interface to download, you can wait for it to automatically download is complete:

 

Configuration Pycharm

1) first start pycharm, configuration window will pop up:

Select User Configuration

If you use too pycharm before and have the relevant configuration file, select here; if not, default.

2) agree to the user agreement:

3) determine the need for data sharing, you can directly select Don't send :
4) Set the font
File-settings-Editor-Font, shown below:

 5) Set Background

File-settings-Editor-Color Scheme, below:

 6, set the template file

File-settings-Editor-File and Code Templates, as shown below:

Create a project

After the above setup is complete, you can begin to create a Python project:

Create a project

Here choose Create New Project, there will set the project name and select an interpreter:

Note: This is the default Python virtual environment, if you do not use a virtual environment, we must modify.
If the Interpreter field is emptyrepresentation Python environment variables in question. Of course, we can also directly select, see below.
Selected in FIG. 1, if the down position Python.exe 3 not selected, the click button 2 positions.


Select Figure 1, if the position is still not Python.exe 3 appears, click the button to select the location of Python 2 installation directory, find the directory of your Python installation, and then select Python.exe.
 

Then click Create can be.
 

So now the project will create a success:

Project Interface
In the figure above, remove Show tips on startup , do not always turn on the welcome screen, and then close it.

Create a Python file

In the position of right-click the project name, select New > Python File:

New Python file

Enter the file name, you can click OK.
 
Enter the file name

Enter the code in the file:

print("nemo")

Then in the file right-click any open space, select Run:

Run Python

在界面的下方,显示 Python 代码的运行结果。

Guess you like

Origin www.cnblogs.com/lctest/p/12088738.html