Resolving PackageNotFoundError: Packages missing in current channels
- By : Mydatahack
- Category : Infrastructure, Installation and Configuration
- Tags: Anaconda, Package Installation, Python
If you are using Anaconda as your choice of Python distribution, chances are that you have encountered this error message when you try to install a package with conda install command.
There are two ways to fix this issue.
- Use pip install instead of conda install.
- Search the package and install it from the available channel.
(1) Use pip install
The first option is easy. You just type pip install and it will install the package. Make sure to upgrade pip with the command below.
Linux
Windows
(2) Search the package and install it from non-default channel.
Steps
- Run the search command
- The result will show you the channel that has the package. Choose the channel with an appropriate platform.
- From the example above, I will choose the conda-forge channel to install requests-oauthlib with the command below.
Happy days!