How to install REQUESTS, SELENIUM and SCRAPY in google colaboratory? - python

people,
How can I install those libraries in google colab, I type the next:
!pip install requests
!pip install beautifulsoup4
!pip install lxml
!pip install selenium
!pip install pillow
!pip install pymongo
!pip install scrapy
but receive the next error:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
requests 2.23.0 requires urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1, but you have urllib3 1.26.8 which is incompatible.
datascience 0.10.6 requires folium==0.2.1, but you have folium 0.8.3 which is incompatible.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
selenium 4.1.3 requires urllib3[secure,socks]~=1.26, but you have urllib3 1.25.11 which is incompatible.
datascience 0.10.6 requires folium==0.2.1, but you have folium 0.8.3 which is incompatible.

You can install those libraries in google colab with %:
%pip install scrapy

Related

pip ERROR: pip's dependency resolver does not currently take into account all the packages that are installed

I just installed a package using pip3 install maigret
i installed another thing using pip3 install but same error
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
crackmapexec 5.2.2 requires bs4<0.0.2,>=0.0.1, which is not installed.
crackmapexec 5.2.2 requires impacket<0.10.0,>=0.9.23, but you have impacket 0.10.0 which is incompatible.
crackmapexec 5.2.2 requires neo4j<5.0.0,>=4.1.1, but you have neo4j 1.7.0.dev0 which is incompatible.
crackmapexec 5.2.2 requires pylnk3<0.4.0,>=0.3.0, but you have pylnk3 0.4.2 which is incompatible.
You can try using following :-
pip install --use-feature=2020-resolver

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
daal4py 2021.5.0 requires daal==2021.4.0, which is not installed.
mxnet 1.7.0.post2 requires numpy<1.17.0,>=1.8.2, but you have numpy 1.18.5 which is incompatible.
d2l 0.17.5 requires numpy==1.21.5, but you have numpy 1.18.5 which is incompatible.
d2l 0.17.5 requires requests==2.25.1, but you have requests 2.18.4 which is incompatible.
Try adding --use-deprecated=legacy-resolver after your pip install commands
for example:
!pip install -r
requirements.txt --use-deprecated=legacy-resolver

AttributeError: module 'jinja2.ext' has no attribute 'with_'

I tried to install eli5 Python package via the below command in my google colab file.
!pip install eli5
And I'm getting this error when running the above command.
AttributeError: module 'jinja2.ext' has no attribute 'with_'
I tried to update jinja2 via the below commands, but it didn't resolve the issue.
!pip install --upgrade aiohttp_jinja2
!pip install --upgrade jinja2>=3.0
How to fix this issue?
This problem is caused by incorrect versioning of the jinja2 package inside the eli5 itself. There are some PRs that address this issue.
So you can:
wait for those PRs to be released in the new eli5 version
or
quickfix it by installing jinja2 of version 3.0.0 - 3.0.2
!pip install --upgrade jinja2>=3.0 didn't work because, I suppose, pip installed version greater than 3.0.2

Facing issue while installing rasa-x on windows using Anaconda

error i'm getting--
ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
tensorflow 2.6.3 requires six~=1.15.0, but you'll have six 1.16.0 which is incompatible.
tensorflow 2.6.3 requires typing-extensions<3.11,>=3.7, but you'll have typing-extensions 4.0.1 which is incompatible.
rasa-sdk 2.8.4 requires typing-extensions<4.0.0,>=3.7.4, but you'll have typing-extensions 4.0.1 which is incompatible.
sanic-jwt 1.6.0 requires pyjwt==2.0.0, but you'll have pyjwt 2.3.0 which is incompatible.
rasa 2.8.23 requires aiohttp!=3.7.4.post0,<3.8,>=3.6, but you'll have aiohttp 3.8.1 which is incompatible.
rasa 2.8.23 requires apscheduler<3.8,>=3.6, but you'll have apscheduler 3.8.1 which is incompatible.
rasa 2.8.23 requires prompt-toolkit<3.0,>=2.0, but you'll have prompt-toolkit 3.0.27 which is incompatible.
rasa 2.8.23 requires sentry-sdk<1.3.0,>=0.17.0, but you'll have sentry-sdk 1.3.1 which is incompatible.
please look at image for more clarity of the error-
[1]: https://i.stack.imgur.com/Vdxo0.png
Version using for Installation--
conda create -n rasavirtualenv python=3.7.6
pip install --upgrade pip==21.3
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple --use deprecated=legacy-resolver
Most probably this is caused because of pip's version. You should downgrade the pip version and see if that works. So make sure the virtual environment with rasa is active and:
pip install --upgrade pip==20.2, then run pip -V to make sure the right version is installed, lastly run pip install -U rasa-x --extra-index-url https://pypi.rasa.com/simple to install Rasa-x.

how to install web3 in google colab

!pip install web3
I tried like this but I got this error message.
ERROR: chainer 6.5.0 has requirement typing-extensions<=3.6.6, but you'll have typing-extensions 3.7.4.1 which is incompatible.
What should I do for this problem?
You need to downgrade typing-extensions to a version older than 3.6.6:
pip install --force-reinstall typing-extensions<=3.6.6

Categories

Resources