Applicable object: Programming completely small white, ready to install Python to learn the characteristics of this article:
Very detailed, meticulous to each step of the installation process, read this article, you do not have to look at other tutorials, give the software Baidu Cloud and their own find the available Pycharm activation mode, can be directly well, and began to write their first Python code.
It is strongly recommended that:
If you have not started the Python tool download beginners, remember not to directly install Python, recommended directly installed Anaconda to be more convenient. It is recommended to install Anaconda+pycharm to learn Python, especially for students who study data analysis. If you have already installed Python, also install Anaconda, so it is also completely possible (many times into the pit of the tears of the talk, to avoid a lot of trouble Ah!) )
Most Python beginners are obsessed with what kind of IDE to install and how to install it, and most of the tutorials are not very detailed and waste a long time, not necessarily the installation succeeds. This is likely in the installation process of the tedious to give up learning, so write this article, on the one hand, I hope to let beginners do not waste time on the installation, fast and efficient installation, on the other hand is a summary of Python learning.
Tool Download: Comment Message I will give the information download link
If there is an error, please indicate.
Next I will describe in detail and at the end give the installation software link.
Why the Anaconda+pycharm?
How to install Anaconda
How to install Pycharm (and give the Chinese version of the Pycharm and the activation method available)
How to configure Anaconda packages in Pycharm
How to write a first program using Pycharm
Why is Anaconda + pycharm?
Recommend to everyone a place to learn and communicate 719+139+688,anaconda is a Python-based data processing and scientific computing platform, it has built up a number of very useful third-party libraries, loaded with Anaconda, is equivalent to Python and some such as Numpy, Pandas, Scrip, matplotlib and other commonly used libraries are installed automatically, making installation easier than regular Python installations. If you don't have Anaconda installed, but you have Python installed, you'll also need to install a variety of libraries in the PIP install, which is more painful to install, and you need to consider compatibility. It is recommended that direct installation is recommended for direct use of Anaconda.
If you already have Python installed, it is also recommended that you install Anaconda, which is also perfectly possible, because the default Python is also the python that is included with the selected Anaconda. Does not affect Python that was originally installed.
An excellent compiler translator is equivalent to "word" in the programming language, where a python compiler's word--pycharm is used. The reason is that the function is more powerful, debugging can set breakpoints, the most important thing is that many people use, so beginners in the video tutorial to learn Python is also more convenient.
How to install Anaconda
Download website
Download on the official website may be slow and can not be downloaded successfully, I have Anaconda and pycharm downloaded well saved in the Baidu Cloud, you can give me comment message I will give a link to share.
After downloading, follow these steps to start the installation:
(1) Double click on the downloaded Anaconda3-5.0.1-windows-x86_64.exe and click Next
(2). Click I Agree
(3). Generally choose Just Me, if your computer has a lot of users, you need to consider this issue. So I directly select the Just me and then continue to click Next.
(4). Click Browse to select the installation location, this free choice, and then continue to click Next
(5). Note that the two options are selected, the first option means to write the installation path to the environment variable, click Install
(6). Verify that the installation is successful
Once the Anaconda is installed, reopen the command-line window and enter Python to see the Anaconda information:
(If you do not see the Anaconda information already installed by starting CMD input from the program quickly, you need to go to the Anaconda installation directory and then enter Python to see the above information.) When you close cmd and start again, you can see the information directly by entering Python.
First enter the Anaconda installation directory and then enter the Conda list can query now installed which libraries, commonly used NumPy, scipy ranked among them. If you see the following information, the installation is successful.
(7). Update all packages (precaution)
The initial installation of the package is generally older, in order to avoid the use of errors later, you can enter the Conda Update--all command, all packages are updated.
Enter Y (Yes) to continue the update when prompted for updates.
How to install Pycharm
Can be downloaded on the official website or downloaded in the official website is slow and may not be successful, I have Anaconda and Pycharm (Chinese version, compressed package only more than 570 M, and the document contains the activation method) download good save in Baidu Cloud, need comment message I will reply to share.
Official website: http://www.jetbrains.com/pycharm/
If you choose to download from the official website, Pycharm's homepage has the option to download (Download).
Just click on "Download".
There are two major versions of Pycharm: Community and Professional,
Where Community can be used free of charge, click on Community Download.
Download it is an EXE file, double-click on the same as you install other programs, choose the path you want to install it.
How to configure Anaconda packages in Pycharm
How to write the first code with a pycharm
(1) Create a project
Select File--and New project--> Pure Python (click to select storage location at the arrow below)--Create
I created a 01 project as an example, after creating good
(2) Creating a Python file
The following interface appears, enter the Python file name (I entered the test, this can be), can not add the py suffix, the system will automatically add suffix py.
(3) Start writing the first code
Here we write to print ("Hellow World")
And then, how to run it? In the upper right corner of the interface there is a small triangle, the first run, the right green small triangle is gray point, you can directly point to the right-click the py file, select Run can
After running, the bottom control interface will appear: Hellow world.
This is where you can start your Python learning journey.
The installation process of the Python tool--anaconda+pycharm