Unable to upgrade to selenium 4.1.0 on Ubuntu 18.04 - selenium

I'm unable to upgrade selenium to version 4.1.0 on Ubuntu 18.04
root#server:~# pip3 install selenium --upgrade
Requirement already up-to-date: selenium in /usr/local/lib/python3.6/dist-packages
Requirement already up-to-date: urllib3 in /usr/local/lib/python3.6/dist-packages (from selenium)
Checking the version:
root#server:~# python3 -c "import selenium; print(selenium.__version__)"
3.141.0

According to its documentation Selenium 4 requires python3.7. So in your case, you need to install python3.7 and then install selenium 4 in that environment.

Related

Why selenium install more modules?

Before all manipulation, i created new virtual environment, and watch pip list, his have two modules:
pip 21.2.3
setuptools 57.4.0
Why, after this command:
pip install selenium
I watch this list modules?:
async-generator 1.10
attrs 21.4.0
certifi 2022.6.15
cffi 1.15.0
cryptography 37.0.2
h11 0.13.0
idna 3.3
outcome 1.2.0
pip 21.2.3
pycparser 2.21
pyOpenSSL 22.0.0
PySocks 1.7.1
selenium 4.2.0
setuptools 57.4.0
sniffio 1.2.0
sortedcontainers 2.4.0
trio 0.21.0
trio-websocket 0.9.2
urllib3 1.26.9
wsproto 1.1.0
I'ts normal? If True, please, send link to this info

How to install tensorflow-text=2.8.*?

I want to install tensorflow-text with version of 2.8.x.
First when I use:
pip install tensorflow-text',
I can only installed the version of 2.6.x.
And then when I use:
pip install -U "tensorflow-text==2.8.*" ,
it said that:
ERROR: Could not find a version that satisfies the requirement
tensorflow-text==2.8.* (from versions: 0.1.0rc2, 0.1.0, 1.0.0b2,
1.15.0rc0, 1.15.1, 2.0.0rc0, 2.0.1, 2.1.0rc0, 2.2.0rc2, 2.2.0, 2.2.1, 2.3.0rc1, 2.3.0, 2.4.0b0, 2.4.0rc0, 2.4.0rc1, 2.4.1, 2.4.2, 2.4.3, 2.5.0rc0, 2.5.0, 2.6.0rc0, 2.6.0) ERROR: No matching distribution found for tensorflow-text==2.8.*

Webdriver : Failed to install 'Webdriver' : version that satisfies the requirement webdrive

After updating Pycharm on Macos I get this error when I try to install webdriver package :
ERROR: Could not find a version that satisfies the requirement webdriver (from versions: none)
ERROR: No matching distribution found for webdriver
I run this and its fixed :
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

installing tensorflow_transform and apache_beam on Datalab

I'm going over these example from google-cloud Coursera courses, and although they worked till a few weeks ago, I can't install tf.transform or apache_beam on Datalab anymore.
https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/machine_learning/feateng/tftransform.ipynb
https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/machine_learning/deepdive/06_structured/4_preproc_tft.ipynb
When installing tensorflow_transform I get the following errors:
%bash
pip install --upgrade --force tensorflow_transform==0.6.0
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
datalab 1.1.3 has requirement six==1.10.0, but you'll have six 1.11.0 which is incompatible.
gapic-google-cloud-pubsub-v1 0.15.4 has requirement oauth2client<4.0dev,>=2.0.0, but you'll have oauth2client 4.1.2 which is incompatible.
proto-google-cloud-pubsub-v1 0.15.4 has requirement oauth2client<4.0dev,>=2.0.0, but you'll have oauth2client 4.1.2 which is incompatible.
apache-airflow 1.9.0 has requirement bleach==2.1.2, but you'll have bleach 1.5.0 which is incompatible.
apache-airflow 1.9.0 has requirement funcsigs==1.0.0, but you'll have funcsigs 1.0.2 which is incompatible.
google-cloud-monitoring 0.28.0 has requirement google-cloud-core<0.29dev,>=0.28.0, but you'll have google-cloud-core 0.25.0 which is incompatible.
proto-google-cloud-datastore-v1 0.90.4 has requirement oauth2client<4.0dev,>=2.0.0, but you'll have oauth2client 4.1.2 which is incompatible.
pandas-gbq 0.3.0 has requirement google-cloud-bigquery>=0.28.0, but you'll have google-cloud-bigquery 0.25.0 which is incompatible.
googledatastore 7.0.1 has requirement httplib2<0.10,>=0.9.1, but you'll have httplib2 0.11.3 which is incompatible.
googledatastore 7.0.1 has requirement oauth2client<4.0.0,>=2.0.1, but you'll have oauth2client 4.1.2 which is incompatible.
Cannot uninstall 'dill'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
The tensorflow version on my Datalab instance was 1.4.
I had to add this one line of code to update tensorflow to 1.10.1
%bash
pip install --upgrade --force-reinstall pip==10.0.1
pip install tensorflow==1.10.1
pip install tensorflow_transform
my environment:
apache-airflow==1.9.0
apache-beam==2.6.0
tensorflow==1.10.1
tensorflow-metadata==0.9.0
tensorflow-tensorboard==0.4.0rc3
tensorflow-transform==0.8.0
The current version of Datalab uses TensorFlow 1.8, so please change the notebook cell in question to:
%bash
pip uninstall -y google-cloud-dataflow
pip install --upgrade --force tensorflow_transform==0.8.0 apache-beam[gcp]
I've updated and checked in the two notebooks linked above.
Another problem might be that you are using Python 2. Datalab by default now uses Python 3 and your pip install (above) happens in Python 3 even if the kernel is Python 2 because %%bash opens up a new shell in which the conda activate of Python 2 has not happened.
To make sure the pip install happens in Python 2, change your pip install of apache-beam[gcp] as follows:
%%bash
source activate py2env
conda install -y dill pytz # do this for all the distutils complaints
pip uninstall -y google-cloud-dataflow
pip install --upgrade --force tensorflow_transform==0.8.0 apache-beam[gcp]

How to install selenium with python 3 ananconda on windows?

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