Great God, please take a detour.
Recently contacted Python has been using the notepad++, suddenly want to try Pycharm, download good pycharm after the beginning of the introduction of the Python interpreter is always prompted to find Pkguti this package, tried several times also not, Baidu no fruit, Then go directly to the official website to download a new Python is the 3.6.4 version of the import process, although there are some small bumps, but fortunately, the following start text
Python version: 3.6.4
Pycharm version: 2017.3.3
Computer system: WIN10
The first is that you want to install Pycharm and Python, you need to pay attention to the following points,
Remember that the Python installation path is best documented when ① installs Python.
② If you are installing under a custom path, remember to add the top to the environment variable, or you will need to configure the environment variables after the installation is complete.
③ installed python after the cmd command to confirm the success of the installation, if the success of the next step, if the failure, please own Baidu, a lot of tutorials here will not repeat.
④pycharm installed, open the main page, select the lower right corner of the Settings button, choose to set the following figure
Select Project interpreter after entering and select the Settings button that the red arrow refers to
In the pop-up dialog box, select the Add local image below
This is the point, the first Red Arrow refers to the place that is the Location dialog box to select an empty folder, there is nothing, this remember
So I created a new file in the folder where I installed Python, and I chose it, and then I opened it and I found that there were some Python packages and library files.
The following Base Interpreter dialog box is the location of your Python installation. If you don't know where the Python installation is located, you can find it in the way shown in the following figure
The folder you reached at this point is a shortcut file, so you need to select the right key and open the location of the file.
At this time to know their own installation directory, according to this directory in the base interpreter select the corresponding location can be successfully imported python3, the result of the following figure
The next step is to create a new Python program, first choose to create a new project, the following figure
Then select a folder in the location, the following other things do not move, by default, OK, a little fixed moment can enter the
When you enter a new file, do not select the new file in the tool box, but in your project name, right-click, and then select New, the following figure, at the test right click to select a new Python file
Then give it a name and then make sure
After the program, the file name in the right button, and then choose to run, the following will come out of the debugging box, the results are shown in the inside
At this point, a Python basic environment can be used normally