Create the most comfortable Python environment who can do that? VS Code + Anaconda Tutorial sent to __python

Source: Internet
Author: User
Tags mirror website

VS Code + Anaconda to create a comfortable Python environment

Recently has been using Anaconda to write code, but it is not easy to debug, and the other anaconda more biased towards data analysis, Python may be more biased towards the pychram, but my experience is pychram more cumbersome ... Start speed to catch up with MATLAB, so the use of experience is not very good, online people use Vim+python as the development environment, but when I configure Vim is also confused [previously used], and the online said Vim is really strong, but also more difficult to grasp, Maybe someone will also use Subline+python, which I used to share today is vs code + Anaconda to create a Python environment, I also found a lot on the internet about the VS code configuration. But always failed to solve the problem of code completion, I said the code complement is not only refers to the Python built-in function complement, but also must be able to complement the full expansion of the module inside the function. This time on these questions to write their own solutions, I hope to help you. If you have better advice or advice, please DMS me.

Here is to recommend my own building Python development Learning Group: 483546416, the group is learning Python development, if you are learning Python, small series welcome you to join, everyone is the software Development Party, not regularly share dry goods (only Python software development related), Including a copy of my own 2018 latest Python advanced materials and a high-level development tutorial, welcome to the step in and into the python's small partners

Anaconda Download

Enter USTC Mirror website: USTC Open Source Software Mirror

Locate as shown and then click Enter

And then into this:

Download the corresponding version on the line. After downloading, install all the way.

VS Code Installation

Baidu to the official website download installation on the line, there is no special requirements, install the latest on the line.

Configuration

Click Install, after installation, reload.

When you configure, search for the Python.pythonpath on the right side of the image above "search on top"

After the search out to copy it to the right, and then fill in your Python path, in the figure I also configured the cursor, which you can not configure, you are accustomed to using which style of the cursor you can choose.

After you find the path, copy the path to the Python.pythonpath, note the escape character ...

Try to write a Python program, F5 run the program, you will normally be able to configure the Tasks.json file

Or just change the path, the Python path. You should be able to run it here.

If you want to start debugging, you need to set the startup profile--launch.json. Click the configuration gear icon at the top of the debug view

Then change the path, or the Python path above.

Finally: The result is "automatic completion"

Related Article

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.