Python, Pycharm, and Anaconda ~ Skip various pitfalls for beginners, pycharmanaconda

Source: Internet
Author: User

Python, Pycharm, and Anaconda ~ Skip various pitfalls for beginners, pycharmanaconda
1. Welcome Speech

I will explain in detail how to solve all kinds of troubles at the beginning of Python. Through these steps, let your attention focus on the Python syntax and the Project issues solved by using Python later. As I am a little white, I unfortunately did not miss any pitfalls and jumped in. So I wrote my experience here. On the one hand, I hope that I can effectively avoid these pitfalls for later scholars, on the other hand, it can be regarded as your own summary and warning.

2. Content outline 2.1 installation sequence

I suggest using Anaconda-Pycharm for Python installation.

The reason why I suggest installing Anaconda3 is explained later

2.2 installation result

Anaconda is a scientific computing environment. After installing Anaconda3 on a computer, it is equivalent to installing Python and some common libraries, such as numpy, scrip, and matplotlib.

(If you have not installed anaconda, you can directly install Python. After installing Python, you need to run pip install...; in cmd to use these libraries ...;)

Focus on this !!!After installing Anaconda, remember to add environment variables. For example, if my installation path is F: \ Anaconda3, perform the following operations:

Right-click my computer --- properties --- advanced system settings ---- there is an environment variable in the advanced options, click the environment variable ------ find path in the system variable ------ double-click the path to add the path, the path is used;.

There are three paths to be added (in my example ):F: \ Anaconda3;F: \ Anaconda3 \ Scripts;F: \ Anaconda3 \ Library \ bin

 

 

After that, input python directly in cmd. If the figure is displayed, it indicates that anaconda is installed and Python can be used. At this point, your Python can be used. Next, let's talk about the IDE development environment. So far, I have recommended twoPycharm and spyderIf you used to use MATLAB, try using spyder. Besides, when installing anaconda. The spyder is also installed. In the Start Menu, find anaconda and there is a spyder. It can be used. The workspace of spyder and MATLAB is very similar, but pycharm is also very powerful, and many people are using pycharm.

So far, I have understood some of the problems in setting up the Python working environment. In my opinion, it is much easier not to directly install Python or install anaconda to build a scientific environment. In select Anaconda2 and Anaconda3, I select Anaconda3. Here, Anaconda2 corresponds to Python2.x, and Anaconda3 corresponds to Python3.x. Python2.x versions often encounter character encoding problems, Python3.x default encoding method is UTF-8, rarely appear character encoding problems.In the next article, when I write a Chinese version of spyder (Kingmo888))It is very important to use Anaconda3 without many character encoding errors.

 

At the beginning, it was mainly used for summarization and is not professional yet. We welcome correction and criticism.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.