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.
insert image description here
Figure 1. Error message

The specific solution is as follows:
(1) Enter anaconda search -t conda Pydap in Anaconda Prompt [Pydap is the name of the library to be installed], and after waiting for a while, the running result shown in Figure 2 will appear Figure
insert image description here
2. anaconda search -t conda Pydap running 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
insert image description here
Figure 3. Figure 3. Information of 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.
insert image description here
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.

insert image description here

Figure 5. Test if the installation is successful

http://www.ifindbug.com/doc/id-44421/name-packagesnotfounderror-wrong-solution-when-conda-install-python-library.html

Tags: PackagesNotFoundError: wrong solution when conda install Python library

python anaconda python

Related: PackagesNotFoundError: wrong solution when conda install Python library