PyCharm and third-party libraries installation tutorial


The article describes the Python and third-party libraries download and installation method, suitable for beginners to learn, after the installation is complete, usually need to install PyCharm. PyCharm is a Python IDE, when writing Python programs often develop, debug and engineering management with the tool, the next article will introduce PyCharm download and install tutorial.

Step One: Download

PyCharm enter the official website to http://www.jetbrains.com/pycharm/download/#section=
windows, windows system is recommended for selection following the installation package to download.
Here Insert Picture Description

Step 2: Install

1. enter the path to download the download is complete, double "pycharm-community-2019.1.2".
Here Insert Picture Description
2. Click on "Next", to enter the following interface, select the installation path:
Here Insert Picture Description
Here Insert Picture Description
The figure create a desktop shortcut file is created and associated with Python. And similar articles on options for installing python.
Here Insert Picture Description
3. The installation interface is as follows:
Here Insert Picture Description
Here Insert Picture DescriptionAt this point, PyCharm has been installed.

Step 3: Create Python file

1. 上述步骤执行完之后,需测试PyCharm是否安装成功,点击桌面图标出现如下界面:
Here Insert Picture Description
Here Insert Picture Description
2. 点击Create New Project,创建新的工程并设置存放工程路径,此处工程文件夹名为PycharmProjects
Here Insert Picture Description
点开Project Interpreter:New Virtualenv environment三角符号,可出现上图界面,点击并更改Base interpreter(基础解释器)为上篇文章中安装过的python解释器路径,选择“Create”创建可进入下图界面。
Here Insert Picture Description
3. 右击PycharmProjects,选择“New”-”python file”,即新建一个python文件,并给文件进行命名操作。
至此,在PyCharm中创建python文件已完成。读者可进行简单的语句执行

第四步:安装Python第三方库

Here Insert Picture Description
1. 在PyCharm中安装第三方库的方法为:点击“file”-”settings”-”Project:
PycharmProjects”-”Project Interpreter”至如下界面:
Here Insert Picture Description
2. 选择上图右上角“+”标志,即install安装至如下界面,在搜索框中输入待安装的第三方库的名称,并选择合适的版本,点击Specify version,勾选默认安装版本,然后选择“Install Package”。
Here Insert Picture Description
Here Insert Picture Description当出现如上提示时,说明待安装包已安装成功。

Step Five: After installation is complete third-party libraries, can be tested, the test method is as follows, using the import statement to import the appropriate library, this article install numpy library, use numpy to create a one-dimensional array example is as follows:
Here Insert Picture Description
The above is downloaded and installed Pycharm and PyCharm method mounted Python third-party libraries, empathy, consistent installation of other third-party libraries in the method described herein PyCharm installation numpy. If you encounter problems during the download and installation questions can leave a message at the bottom of the article, Xiao Bian answer promptly as possible.

Published 21 original articles · won praise 6 · views 8019

Guess you like

Origin blog.csdn.net/weixin_42128329/article/details/90046725