python installation and configuration

pyhton download and install

1, python official website address: https://www.python.org

 

 

 2, download Python editor PyCharm

PyCharm is a powerful Python editor

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

After entering the site, we will see the following interface

professional representation Professional Edition, community is a community version, it is recommended to install Community Edition, because it is free to use

1. When the download, click on the installation, remember to modify the installation path, here I put the E drive, revise after a good, Next

2, followed by

We can choose according to their own computer 32-bit or 64-bit, 64-bit current system should basically it

3, as follows

Adding Environment Variables

(1) Right My Computer, click Properties to bring up the following interface

(2) Click on Advanced System Settings, appears the figure below

(3) Click on Environment Variables

(4) inside the system variables Path, edit it, paste interpreter python path where the end surface, together with a semicolon.

End environment variable configuration

8, this time Pycharm also installed, we enter the software.

9. Click Create New Project, followed by focus

Location is the path we store the project, click on the triangle, you can see pycharm has automatically acquired Python 3.5.

Click on the first we can choose the path Location, such as

Remember, we need to choose the path is empty, or can not create the second Location do not move it, the default is automatic, and the rest do not point and click Create. The following interface, which is Pycharm in the configuration environment, quietly waiting. Finally, click close enough to turn off the prompts.

10, to establish the build environment

Right- click New, select Python File

To file a name, and click OK

系统会默认生成hello.py

好了,至此,我们的初始工作基本完成。

11、我们来编译一下

快捷键ctrl+shift+F10或者点击绿色三角形,就会编译,编译结果如下

12、对了,因为我之前已经添加过了,所以可以直接编译,还有很重要的一步没说,不然pycharm无法找到解释器,将无法编译。

点击File,选择settings,点击

添加解释器

最后点击Apply。等待系统配置。

如果我们需要添加新的模块,点击绿色+号

然后直接搜索pymysql

然后点安装

以上就是pycharm的安装过程以及初始化,还有Python解释器的安装配置。

 

Guess you like

Origin www.cnblogs.com/hl-2030/p/11593530.html