Teach you how to configure the Anaconda+Pycharm development environment

If a worker wants to do a good job, he must first sharpen his tools.

I. Introduction

1. Introduction to Anaconda

  • Anaconda is a Python-based data processing and scientific computing platform. It has built-in many useful third-party libraries. Installing Anaconda is equivalent to automatically installing Python and some commonly used libraries such as Numpy, Pandas, Scipy, and Matplotlib. Well, making installation easier than regular Python installation.
  • If you choose to install Python, you also need to pip install to install various libraries one by one, which is more troublesome to install, and you need to consider compatibility. Otherwise, you need to go to the Python official website (https://www.python.org/downloads /windows/) Select the corresponding version to download and install, you can choose default installation or custom installation. In order to avoid the trouble of configuring the environment and installing pip, it is recommended to check the options of adding environment variables and installing pip.

2. Introduction to Pycharm

PyCharm is developed by JetBrains, a well-known software development company. It is considered the best Python IDE when it comes to artificial intelligence and machine learning. On top of that, Pycharm incorporates several libraries (like Matplotlib and Numpy) to help developers explore more options available.

coding assistance

It provides a smart, configurable editor with coding completion, code snippets, code folding and split windows to help users complete coding work faster and easier.

Project code navigation

The IDE helps users navigate instantly from one file to another, from a method to its declaration or usage and even through the class hierarchy. It can be even faster if the user learns to use the shortcut keys it provides.

code analysis

Users can use its coding syntax, error highlighting, intelligent detection and one-click code completion suggestions to make coding more optimized.

Python refactoring

With this feature, users can easily rename project-wide, extract methods, superclasses, import fields, variables, constants, move and push forward and backward refactorings.

Support Django framework

With its own HTML, CSS and JavaScript editors, users can develop web development through the Django framework more quickly. Additionally, it supports CoffeeScript, Mako and Jinja2.

Integrated version control

Log in, log out, view split and merge, all within its unified VCS user interface (available for Mercurial, Subversion, Git, Perforce and other SCMs).

2. Download Anaconda and Pycharm

1. Download Anaconda

Enter the official website: https://www.anaconda.com/download/#windows to download the appropriate version
, or you can choose to download it from the Tsinghua University Open Source Software Mirror Site: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive /

2. Download Pycharm

Enter the official website: https://www.jetbrains.com/pycharm/download/#section=windows

Choose to download the community version of Pycharm for Windows.

3. Install Anaconda and Pycharm

1. Install Anaconda

Click to select Anaconda, run as administrator, enter the following window, and click Next.

Click on I Agree

Select Just Me, then click Next

It is recommended to click Browse, change to the custom directory, and then click Next.

For example, save it to C:\python\Anaconda\ and click Next.

Check both and click Install.

Wait patiently for the installation, about ten minutes.

After completion, continue to click Next.

Click on Skip

Uncheck these two and click Finish.

After the installation is complete, you can see the Anaconda we just installed in the recent additions in the start menu.

Click Anaconda Navigator to enter, wait for a while to see the following interface, cancel the check, then click OK, and don't show again.

Click Launch under jupyter notebook, wait for a while, and you can enter the webpage normally.

Create a new jupyter notebook, the file suffix is ​​.ipynb, it is very convenient to write Python code and take notes.

Click Launch under Spyder, wait for a while, you can enter Spyder normally, and write Python code in Spyder to run.

So far, Anaconda has been successfully installed and can be used normally.

2. Install Pycharm

Click to select Pycharm, run as administrator, enter the following window, and click Next.

Click Browse to change the directory, and then click Next.

It is recommended to tick the options in the red box. The first is to create a desktop shortcut, and the second is checked to indicate that Pycharm will be used to open the .py file by default in the future.

Click Install

wait patiently for a while

Check Run Pycharm Community Edition and click Finish.

Check I confirm. . . Then click Continue ,

click Don't Send and

click to create a New Project

Replace Location and set System Interpreter to python.exe that comes with Anaconda

After that, a main.py file will be created automatically and enter the interface, as shown in the following figure: The

python code can be successfully run

The initial interface of Pycharm is very unfriendly. We can customize the font size, import the code theme we like, and set the background image to make the Pycharm writing code environment more beautiful and improve the Python writing experience.

custom font size

Import your favorite code theme, you can go to this website to download your favorite theme style: http://www.themesmap.com/theme.html


set background image

The result is as follows:

Author: Ye Tingyun
Public Account: WeChat Souyisou [Practice Python] Share knowledge and examples of Python crawler, data analysis, and data visualization; also share practical information tutorials, software tools, learning documents and resume templates. Discover the joy of seeking knowledge, and progress through continuous summarization and learning. Insist on outputting high-quality articles, look forward to your attention, communicate and learn together, and achieve mutual success.
This article is only for communication and learning, without the permission of the author, it is prohibited to reprint, and do not use it for other purposes. Violators will be investigated.
Discover the joy of seeking knowledge, progress through continuous summarization and learning, and share with you.

Guess you like

Origin blog.csdn.net/fyfugoyfa/article/details/113275097