PackagesNotFoundError: wrong solution when conda install Python library

                                                        PackagesNotFoundError: wrong solution when conda install Python library

After installing Anaconda, we can install the Python library through the " conda install library name " in the Anaconda Prompt interactive window, but sometimes when using this command to install, it will prompt PackagesNotFoundError: The following packages are not available from current channels : error, now take the installation of the Pydap library as an example to provide a method to solve this error under Windows system.

                                                                                           Figure 1. Error message

The specific solutions are as follows:

(1) Enter anaconda search -t conda Pydap in Anaconda Prompt [ Pydap is the name of the library to be installed], after waiting for a while, the running result shown in Figure 2 appears

                                                                          Figure 2. anaconda search -t conda Pydap run results

From Figure 2, we can find a total of 8 Pydap packages. We need to select the appropriate package according to our own system, and use the anaconda show <USER/ PACKAGE > command to view the detailed information of the package

(2) Enter anaconda show conda-forge/pydap in the interactive window to view the detailed information of the package. After running, the displayed information is shown in Figure 3

                                      

                                                                                                  Figure 3. Information about the package

(3) According to the prompt in Figure 3, run conda install --channel https://conda.anaconda.org/conda-forge pydap to install the package. At this time, you need to wait for a while. When the Proceed([y]/ n)? Enter y and press Enter to install and download the library. At this time, you also need to wait for a while.

                                                                                                     Figure 4. Installation

(4) Start python in the interactive window, enter import pydap, if no error is reported, it means that the Pydap library is installed successfully.

              

                                                                                                 Figure 5. Test if the installation is successful

Tags: PackagesNotFoundError: wrong solution when conda install Python library

07_Python basics

Related: PackagesNotFoundError: wrong solution when conda install Python library