Anaconda environment configuration method of Python drawing library Matplotlib

  This article describes how to install Python language modules in the Anaconda environment.matplotlib

  In previous articles, we have introduced the use of the Python language matplotliblibrary many times; and in this article, we will introduce the method of configuring the library in the Anaconda environment .matplotlib

  First, open the Anaconda Prompt software, as shown in the figure below.

insert image description here

  Here, since I want to configure the library in a Pythonpy36tf virtual environment named Python , I first enter this environment through the following code; for the creation and entry of the virtual environment, you can refer to the article Creating a Python virtual environment in Anaconda, Use and deletion (https://blog.csdn.net/zhebushibiaoshifu/article/details/128334614).matplotlib

activate py36tf

  Run the above code to enter the specified virtual environment, as shown in the figure below.

insert image description here

  Next, we can start matplotlibthe configuration of the library; by entering the following code, matplotlibthe configuration of the library will start.

conda install -c conda-forge matplotlib

  Run the above code, wait for a while, and the words shown in the figure below will appear.

insert image description here

  Next, enter yto start matplotlibthe configuration of the library. Wait for a while, and the situation shown in the figure below will appear, which means that matplotlibthe library has been configured.

insert image description here

matplotlibAt this point, we can check whether the configuration of the library   is successfully completed through the code shown in the figure below .

insert image description here

  If no error is reported, matplotlibthe library has been successfully configured.

  So far, you're done.

Welcome to pay attention: Crazy learning GIS

Guess you like

Origin blog.csdn.net/zhebushibiaoshifu/article/details/129305026