installing tensorflow on ubuntu linux, protobuf version issue - python

While installing tensorflow on Ubuntu (GCloud VM), I am getting alert as -
pip install tensorflow
apache-beam 0.6.0 has requirement protobuf==3.2.0, but you'll have protobuf 3.5.2 which is incompatible.
when I try to upgrade apache-beam. It is giving error -
pip install apache-beam
tensorflow-tensorboard 0.4.0 has requirement protobuf>=3.4.0, but you'll have protobuf 3.2.0 which is incompatible.
tensorboard 1.7.0 has requirement protobuf>=3.4.0, but you'll have protobuf 3.2.0 which is incompatible.
tensorflow 1.4.1 has requirement protobuf>=3.3.0, but you'll have protobuf 3.2.0 which is incompatible.
grpcio 1.11.0 has requirement protobuf>=3.5.0.post1, but you'll have protobuf 3.2.0 which is incompatible.
When directly upgrading the protobuf version -
pip install protobuf==3.5.2
apache-beam 0.6.0 has requirement protobuf==3.2.0, but you'll have protobuf 3.5.2 which is incompatible.
Don't know how to resolve this interdependency.
uname -a
16-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

You could reference this dockerfile for installing tensorflow as python package.
After you succeed, then try install apache-beam.

Related

Pip Installation Error - Could not find a version that satisfies the requirement

I am trying to install molgrid library. According to github and pypi pages
Pip installation like below.
pip install molgrid
I'm using Visual Studio Code. When I type pip install molgrid I am getting the following error
ERROR: Could not find a version that satisfies the requirement molgrid
(from versions: none) ERROR: No matching distribution found for
molgrid
Right now, my env's libraries list:
python -m pip list
Package Version
------------------ ---------
atomicwrites 1.4.1
attrs 22.1.0
biopython 1.79
certifi 2022.6.15
charset-normalizer 2.1.0
colorama 0.4.5
condacolab 0.1.3
idna 3.3
imageio 2.21.0
importlib-metadata 4.12.0
iniconfig 1.1.1
joblib 1.1.0
networkx 2.6.3
numpy 1.21.6
packaging 21.3
Pillow 9.2.0
pip 22.2.1
pluggy 1.0.0
py 1.11.0
pyparsing 3.0.9
pyquaternion 0.9.9
pytest 7.1.2
PyWavelets 1.3.0
requests 2.28.1
scikit-image 0.19.3
scikit-learn 1.0.2
scipy 1.7.3
setuptools 40.6.2
threadpoolctl 3.1.0
tifffile 2021.11.2
tomli 2.0.1
torch 1.12.0
torchaudio 0.12.0
torchvision 0.13.0
typing_extensions 4.3.0
urllib3 1.26.11
zipp 3.8.1
Question: How can I install molgrid lib in Visual Studio Code.
Note1: Installation works fine in Google Colab
Note2: There is a similar question Here but those answers are related to Linux, I couldn't find the any Visual Studio Code IDE related answer.
For this package, we can find the .whl file in PyPi.
molgrid-0.5.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
From it's file name, we can know that it only provides the installation package of Linux system, so please use Linux instead of Windows.

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.

Getting below error while executing "pip install -r requirements.txt" command

I am a beginner and working on a Chatbot project using RASA framework. When I try to install RASA using "pip install rasa" commands or dependencies inside requirement.txt [snap attached] using "pip install -r requirements.txt",I'm getting below error.
In order to resolve the issue I changed concern dependencies version in Requirement.txt but even that couldn't help me out.
For instance in below case, per logs there is requirement of "fbmessenger~=6.0" instead of Version 5.0.0 (existing one).
ERROR: rasa 1.3.9 has requirement fbmessenger~=6.0, but you'll have fbmessenger 5.0.0 which is incompatible.
If I change the version 5.0 to 6.0 in requirement.txt file and run command then it will again throw error with now requirement of 5.0 version. like
ERROR: rasa 1.2 has requirement fbmessenger~=5.0, but you'll have fbmessenger 6.0.0 which is incompatible.
Error Trace :--
ERROR: tensorflow 1.14.0 has requirement wrapt>=1.11.1, but you'll have wrapt 1.10.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement fbmessenger~=6.0, but you'll have fbmessenger 5.0.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement matplotlib~=3.0, but you'll have matplotlib 2.0.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement packaging~=19.0, but you'll have packaging 18.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement pika~=1.0.0, but you'll have pika 0.12.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement python-socketio>=4.3.1, but you'll have python-socketio 3.0.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement pytz~=2019.1, but you'll have pytz 2018.9 which is incompatible.
ERROR: rasa 1.3.9 has requirement redis~=3.3.5, but you'll have redis 2.0.0 which is incompatible.
ERROR: rasa-x 0.21.4 has requirement pika~=1.0.0, but you'll have pika 0.12.0 which is incompatible.
ERROR: rasa-x 0.21.4 has requirement requests~=2.22, but you'll have requests 2.21.0 which is incompatible.
ERROR: rasa-sdk 1.3.3 has requirement ConfigArgParse~=0.14, but you'll have configargparse 0.13.0 which is incompatible.
ERROR: rasa-core 0.13.8 has requirement tensorflow~=1.12.0, but you'll have tensorflow 1.14.0 which is incompatible.
ERROR: gym 0.15.3 has requirement cloudpickle~=1.2.0, but you'll have cloudpickle 0.6.1 which is incompatible.
Requirement.txt Content :-
gspread==3.0.0
beautifulsoup4~=4.6.3
requests~=2.21.0
geopy~=1.18.1
pandas~=0.24.1
rasa==1.3.9
future==0.17.1
fakeredis==0.10.1
keras-applications==1.0.6
keras-preprocessing==1.0.5
dill==0.2.9
tensorflow==1.14.0
wrapt==1.10.0
fbmessenger==5.0
matplotlib==2.0
packaging==18.0
pika==0.12.0
pyhton-socketio==3.0
pytz==2018.9
redis==2.0
ConfigArgParse==0.13
cloudpickle==0.6.1
mailchimp3==3.0.2
oauth2client==4.1.2
Other Details :--
OS-Window 10
Python - 3.6.0
pip -19.3
VS Code - 1.39
This occurs when you try to install a older version which is incompatible with new ones. Rather than having all the document i suggest that you can install the latest version of those packages manually.
However most of those packages comes with rasa. You can just install them with:
pip install rasa
If you have some libaries other than those coming with rasa just install them with "pip install (package_name)"
I feel you are trying to install rasa-x in an already existing virtual environment(venv).
Please create a new venv folder and then fire the below command and everything will work fine.
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
Earlier someone must have installed rasa-x. The earlier version had different versions of dependencies and in between rasa-x got upgraded along with its dependency versions. Now when you are trying to reinstall it, you are facing conflicts.
If you have a specific version of rasa-x, say 0.21.4, in your mind then you can install it in a new venv as follows:
pip install rasa-x==0.21.4 --extra-index-url https://pypi.rasa.com/simple
I have just appended the version number to the package name.

"No matching distribution found for sqlite3" with python3 and virtualenv

I'm trying to install sqlite3 on Debian 9 using virtualenv and python3.
I'm getting the Error message below:
Could not find a version that satisfies the requirement sqlite3 (from versions: ) No matching distribution found for sqlite3
The "pip list" command returned the following packages
pip list
astroid 2.2.0
colorama 0.4.1
coremltools 2.1.0
isort 4.3.9
lazy-object-proxy 1.3.1
mccabe 0.6.1
numpy 1.16.2
pandas 0.24.1
pathlib 1.0.1
pip 19.0.3
pkg-resources 0.0.0
prettytable 0.7.2
protobuf 3.6.1
pylint 2.3.0
python-dateutil 2.8.0
pytz 2018.9
setuptools 40.8.0
six 1.12.0
typed-ast 1.2.0
wheel 0.33.1
wrapt 1.11.1
System configuration and software version:
Python -V: Python 3.5.3
virtualenv --version: 15.1.0
lsb_release -a:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch
I already did some research on this issue but without success.
I will appreciate any help.
sqlite3 is a module from standard library, you don't need to install it separately.

Error: mitmproxy requires Python 3.5 or above

I have installed mitmproxy with pip install
Some conflicting requirements poped up
thrift-sasl 0.3.0 has requirement thrift>=0.10.0, but you'll have thrift 0.9.3 which is incompatible.
tensorflow-tensorboard 0.1.5 has requirement bleach==1.5.0, but you'll have bleach 2.1.2 which is incompatible.
tensorflow-tensorboard 0.1.5 has requirement html5lib==0.9999999, but you'll have html5lib 1.0.1 which is incompatible.
superset 0.22.1 has requirement cryptography==1.9, but you'll have cryptography 2.1.4 which is incompatible.
superset 0.22.1 has requirement markdown==2.6.8, but you'll have markdown 2.6.11 which is incompatible.
superset 0.22.1 has requirement pandas==0.20.3, but you'll have pandas 0.22.0 which is incompatible.
superset 0.22.1 has requirement python-dateutil==2.6.0, but you'll have python-dateutil 2.6.1 which is incompatible.
superset 0.22.1 has requirement six==1.10.0, but you'll have six 1.11.0 which is incompatible.
flower 0.9.1 has requirement tornado==4.2.0, but you'll have tornado 4.5.3 which is incompatible.
apache-airflow 1.9.0 has requirement flask<0.12,>=0.11, but you'll have flask 0.12.2 which is incompatible.
apache-airflow 1.9.0 has requirement flask-wtf==0.14, but you'll have flask-wtf 0.14.2 which is incompatible.
apache-airflow 1.9.0 has requirement jinja2<2.9.0,>=2.7.3, but you'll have jinja2 2.10 which is incompatible.
apache-airflow 1.9.0 has requirement psutil<5.0.0,>=4.2.0, but you'll have psutil 5.4.3 which is incompatible.
airflow 1.8.0 has requirement flask<0.12,>=0.11, but you'll have flask 0.12.2 which is incompatible.
When I try
mitmproxy --host
Error: mitmproxy requires Python 3.5 or above
Starting with version 1.0 released in 12/2016, mitmproxy no longer supports Python 2.
That is strange to me because I have 3.6
python --version
Python 3.6.3 :: Anaconda, Inc.
How to fix this issue?
Try to install it in a new clean virtual environment with clear dependencies:
$ mkvirtualenv mitmproxy
$ pip install mitmproxy
Btw. your call seems to be outdated:
$ mitmproxy --host
usage: mitmproxy [options]
mitmproxy: error: unrecognized arguments: --host
Try:
$ mitmproxy --help

Categories

Resources