19

I'm trying to install Selenium in a conda environment in Windows 10 with

conda install --name myenv selenium

but this returns the error

PackageNotFoundError: Package missing in current win-64 channels:
  - selenium

How can I complete this package installation?

Robert
  • 2,111
  • 4
  • 18
  • 32

3 Answers3

23

Conda uses different channels to search for packages. You need find the package which supports Win 64

You can do that by going to below link

https://anaconda.org/search?q=selenium&sort=ndownloads&sort_order=-1&reverse=true

And you will find that this is most downloaded one

https://anaconda.org/conda-forge/selenium

So execute below

conda install -c conda-forge --name myenv selenium 
Tarun Lalwani
  • 142,312
  • 9
  • 204
  • 265
  • That worked perfectly. Can conda be configured to automatically search different channels for a given package? – Robert Sep 10 '17 at 14:59
  • 1
    Look at this https://conda.io/docs/commands/conda-config.html. I think you can use something like `conda config --add channels conda-forge` – Tarun Lalwani Sep 10 '17 at 15:04
2

If you are using Anaconda just use:

  • go to anaconda command prompt
  • just type pip install selenium
SecretAgentMan
  • 2,856
  • 7
  • 21
  • 41
0
  • launch jupyter notebook
  • write command conda install selenium in the cell and run it
  • once installation is done restart the kernel
Siya
  • 21
  • 1