How to install selenium with python 3 ananconda on windows? - selenium

I am trying to installing selenium with anaconda but failed.I also tried the command " conda install selenium " but it is not working

In order to conda install packages the package must be hosted on anaconda.org. There is no package called simply "selenium" in the default anaconda channel. There is a package in the conda-forge channel however and it can be installed using:
conda install -c conda-forge selenium
Read more about it here: https://anaconda.org/conda-forge/selenium

Related

Anaconda install keras-tuner in tensorflow environment

I am using Anaconda 3 and would like to install keras-tuner in the tensorflow environment.
I've tried
conda install -c conda-forge keras-tuner
in the Anaconda Prompt (see https://anaconda.org/conda-forge/keras-tuner) which worked fine. However, the package has been installed in the base environment (and not in the tensorflow environment).
How can I choose the environment in which I want to install keras-tuner?
I use tensorflow 2.1.0 on a Windows machine
There are multiple ways of doing it.
activating the target environment and running the same command.
You can install a conda package also without activating the environment. Just use
conda install -n <env_name> <package> or conda install -p <path/to/env> <package>

Unable to install Tensorflow 2.2.0 using pip

I am using ubuntu 20.04 with python 3.6.5 Anaconda. Previously, I have installed Tensorflow 2.0.0a0 and it was showing in both "pip list" and "conda list" but Now I want to install version 2.2.0 because I am unable to import "stellargraph" as it requires 2.1.x or higher version But when I uninstalled 2.0.0a0 completely and installing Tensorflow 2.2.0 previously, it was not showing in pip list or conda list and so, again when I am trying to install it on terminal using :
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.2.0-cp36-cp36m-manylinux2010_x86_64.whl
as mentioned here, I am getting this output on terminal.
But it is not installed as I can't see it in pip list and site-packages folder.
pip list
Can anyone please help me ?

Problem with installing tensorflow on windows along with pytorch using conda environment

I am trying to install "Tensorflow" on windows using conda environment.
Please note that -
I am installing tensorflow along with pytorch in the same environment.
I am getting "Remove Error": 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.
I getting this error with both of these commands
pip install tensorflow
conda install tensorflow
A snap of the error can be seen below.
I sorted this issue by fixing the installation of the "httptools".
I recently found that many of the conda supports of have been migrated to conda forge.
HENCE, BEFORE INSTALLING THE TENSORFLOW. I INSTALLED THE "httptool" using the following command in the anaconda prompt.
conda install -c conda-forge httptools
Now everything works really fine.

What's the minimal conda environment build for pandas?

I'm using Miniconda 3, and I'm trying to build a minimal Conda environment containing pandas. However, when I try to load the pandas module, Jupyter gives me the following error:
The kernel appears to have died. It will restart automatically.
When doing the same thing via Python in the Terminal, Python crashes.
I have created a minimal Conda environment, which can be reproduced via the code below.
conda create -n testenv
conda activate testenv
conda install python
conda install pandas
conda install jupyter
The problem doesn't occur anymore when I follow up with a full Anaconda install, via conda install anaconda.
Any ideas as to how this problem can be resolved without installing Anaconda?
I figured out what the problem was. What I should have mentioned is that I built a global channel list according to Bioconda recommendation, using
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
This makes conda-forge the highest-priority channel. For reasons I don't understand, conda-forge builds a dependency hell. (I noticed the guys at conda-forge: https://github.com/conda-forge/pandas-feedstock/issues/63).
For now, install using conda install -c defaults pandas.

conda install -c conda-forge tensorflow just stuck in Solving environment

I am trying to run this statement in MacOS.
conda install -c conda-forge tensorflow
It just stuck at the
Solving Environment:
Never finish.
$ conda --version
conda 4.5.12
Nothing worked untill i ran this in conda terminal:
conda upgrade conda
Note that this was for poppler (conda install -c conda-forge poppler)
On win10 I waited about 5-6 minutes but it depends of the number of installed python packages and your internet connection.
Also you can install it via Anaconda Navigator
One can also resolve the "Solving environment" issue by using the mamba package manager.
I installed tensorflow-gpu==2.6.2 on Linux (CentOS Stream 8) using the following commands
conda create --name deeplearning python=3.8
conda activate deeplearning
conda install -c conda-forge mamba
mamba install -c conda-forge tensorflow-gpu
To check the successful usage of GPU, simply run either of the commands
python -c "import tensorflow as tf;print('\n\n\n====================== \n GPU Devices: ',tf.config.list_physical_devices('GPU'), '\n======================')"
python -c "import tensorflow as tf;print('\n\n\n====================== \n', tf.reduce_sum(tf.random.normal([1000, 1000])), '\n======================' )"
References
Conda Forge blog post
mamba install instead of conda install
The same error happens with me .I've tried to install tensorboard with anaconda prompt but it was stuck on the environment solving .So i've added these paths to my environment variables:
C:\Anaconda3
C:\Anaconda3\Library\mingw-w64\bin
C:\Anaconda3\Library\usr\bin
C:\Anaconda3\Library\bin
C:\Anaconda3\Scripts
and it worked well.
Follow the instruction by nekomatic.
I left it running for 1 hour. Yes. it is finally finished.
But now I got the conflicts
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- anaconda==2018.12=py37_0 -> bleach==3.0.2=py37_0
- anaconda==2018.12=py37_0 -> html5lib==1.0.1=py37_0
- anaconda==2018.12=py37_0 -> numexpr==2.6.8=py37h7413580_0
- anaconda==2018.12=py37_0 -> scikit-learn==0.20.1=py37h27c97d8_0
- tensorflow
Use "conda info <package>" to see the dependencies for each package.