Conda PackagesNotFoundError while trying to install keyboard

464 views Asked by At

Trying to install keyboard module using conda, and when I inputted

conda install -c conda-forge keyboard

returned

**PackagesNotFoundError: The following packages are not available from current channels:

  • keyboard

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.**

I tried conda config --append channels conda-forge and then conda install keyboard and it still didn't work. I am working in a conda environment and other packages like opencv install correctly.

Am on MacOS if that's important

2

There are 2 answers

0
merv On

That package is currently built for osx-64, but not for osx-arm64 (what most macOS users have now).

When encountering this, first thing to do is tell Conda Forge that you'd like this built for osx-arm64 since this is done by request only (not a default). There are directions here: https://conda-forge.org/docs/maintainer/knowledge_base.html#apple-silicon-builds.

In the meantime, macOS users can always fallback to emulating with osx-64 packages. There are details on that in this answer.

1
VIGNESH J On

In command promt/control panel run the following:

conda update conda
conda update --all
conda install -c conda-forge keyboard
conda install keyboard=0.13.5
conda activate [ENVIROMENT NAME]

then try pip install, if this doesn't help, try to uninstall anaconda navigator and reinstall it.