Visual Studio2017 python Add package

Source: Internet
Author: User

The Python language contains thousands of useful packages that users can merge into their own projects. Visual Studio provides a UI for managing packages in a Python environment.

Recently installed the visual Studio2017, for learning Pyhton, but found that after the default installation of Python3.6 (64-bit) did not include Matplotlib, the following is the process of adding this package.

1. Open The Python Environment window-Solution Explorer. The list contains the environments that are installed using Visual Studio Setup and the environments that are installed separately.  the environment shown in bold is the default environment for new projects. By default, only Pip and setuptools two items.

2. Right mouse button "Python 3.6 (64-bit) (global Default)" in the Pop-up window select "Install Python package"

3. In the popup "Python Environment" window Search window (red box), enter the package you want to install, for example: Matplotlib, then enter, then select pip install

4. If the system prompts you to agree to the promotion, please agree.

5. After the package is installed, it is displayed in the Python environment window. Click the X on the right side of the package to uninstall it.

The small progress bar under the environment indicates that Visual Studio is generating an IntelliSense database for the newly installed package. The IntelliSense tab also displays more details. Note that after you complete the installation, restart the entire Visual Studio editor. Otherwise IntelliSense features such as grammar checking are inactive for the package.

Visual Studio2017 python Add package

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.