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