when I try to download Tensorflow, I get these errors. Can you help me please?
ERROR: astroid 2.2.5 requires typed-ast>=1.3.0; implementation_name == "cpython", which is not installed.
ERROR: tf-models-official 2.6.0 has requirement tensorflow>=2.5.0, but you'll have tensorflow 2.4.1 which is incompatible.
ERROR: tensorflow-text 2.6.0 has requirement tensorflow<2.7,>=2.6.0, but you'll have tensorflow 2.4.1 which is incompatible.
ERROR: lvis 0.5.3 has requirement matplotlib>=3.1.1, but you'll have matplotlib 3.1.0 which is incompatible.
ERROR: apache-beam 2.32.0 has requirement avro-python3!=1.9.2,<1.10.0,>=1.8.1, but you'll have avro-python3 1.10.2 which is incompatible.
Related
I'm trying to install tensorflow-io to work with flac audio files
For that I use this command pip install -q tensorflow-io
But I got this 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.
kubernetes 10.1.0 requires pyyaml~=3.12, but you have pyyaml 5.3.1 which is incompatible.
jupyterlab-git 0.10.0 requires nbdime<2.0.0,>=1.1.0, but you have nbdime 2.0.0 which is incompatible.
google-cloud-pubsub 1.4.3 requires google-api-core[grpc]<1.17.0,>=1.14.0, but you have google-api-core 1.23.0 which is incompatible.
earthengine-api 0.1.244 requires google-api-python-client>=1.12.1, but you have google-api-python-client 1.8.0 which is incompatible.
bokeh 2.2.3 requires tornado>=5.1, but you have tornado 5.0.2 which is incompatible.
astroid 2.3.3 requires wrapt==1.11.*, but you have wrapt 1.12.1 which is incompatible.
aiobotocore 1.1.2 requires botocore<1.17.45,>=1.17.44, but you have botocore 1.19.31 which is incompatible.
How to install tensorflow-io on kaggle notebook
I think it's only a warning. I got the same somedays back when I did
!pip install tensorflow-io
It got installed successfully and I was able to train also.
I am working on a plant leaf detection model using imageAI library. when I create an instance of the model the following error occurs. I can not understand the error.
this is my code:
from imageai.Detection import ObjectDetection
detector = ObjectDetection()
Error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-6-3bc804fbfef2> in <module>()
1 from imageai.Detection import ObjectDetection
----> 2 detector = ObjectDetection()
/usr/local/lib/python3.6/dist-packages/imageai/Detection/__init__.py in __init__(self)
86 self.__yolo_model_image_size = (416, 416)
87 self.__yolo_boxes, self.__yolo_scores, self.__yolo_classes = "", "", ""
---> 88 self.sess = K.get_session()
89
90 # Unique instance variables for TinyYOLOv3.
AttributeError: module 'keras.backend' has no attribute 'get_session'
you have to use older version of keras and tensorflow.
try this
pip3 install tensorflow==1.13.1
pip3 install keras==2.2.4
or you can install tensorflow 1.14 or 1.15.1
follow this versions..
Package Version
----------------------- ---------
absl-py 0.15.0
astunparse 1.6.3
cached-property 1.5.2
cachetools 4.2.4
certifi 2021.10.8
charset-normalizer 2.0.7
cycler 0.10.0
flatbuffers 1.12
gast 0.3.3
google-auth 2.3.0
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
grpcio 1.32.0
h5py 2.10.0
idna 3.3
imageai 2.1.6
importlib-metadata 4.8.1
Keras 2.4.3
Keras-Preprocessing 1.1.2
keras-resnet 0.2.0
kiwisolver 1.3.2
Markdown 3.3.4
matplotlib 3.3.2
numpy 1.19.3
oauthlib 3.1.1
opencv-python 4.5.3.56
opt-einsum 3.3.0
Pillow 7.0.0
pip 21.2.4
protobuf 3.19.0rc1
pyasn1 0.4.8
pyasn1-modules 0.2.8
pyparsing 2.4.7
python-dateutil 2.8.2
PyYAML 6.0
requests 2.26.0
requests-oauthlib 1.3.0
rsa 4.7.2
scipy 1.4.1
setuptools 58.0.4
six 1.15.0
tensorboard 2.7.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.0
tensorflow 2.4.0
tensorflow-estimator 2.4.0
termcolor 1.1.0
typing-extensions 3.7.4.3
urllib3 1.26.7
Werkzeug 2.0.2
wheel 0.37.0
wincertstore 0.2
wrapt 1.12.1
zipp 3.6.0
I have this list of dependencies:
absl-py==0.7.0
bleach==1.5.0
click==6.7
cycler==0.10.0
decorator==4.2.1
futures==3.1.1
h5py==2.7.1
html5lib==0.9999999
imageio==2.2.0
Keras==2.1.5
Markdown==2.6.11
matplotlib==3.1.1
networkx==2.1
numpy==1.16.0
Pillow==5.0.0
pip-autoremove==0.9.0
protobuf==3.7
pyparsing==2.2.0
python-dateutil==2.6.1
pytz==2017.3
PyWavelets==0.5.2
PyYAML==3.12
scikit-image==0.13.1
scipy==1.1.0
six==1.12.0
tensorflow-gpu
tensorflow-tensorboard==1.5.1
tqdm==4.19.5
Werkzeug==0.15
I have these errors:
ERROR: tensorflow 1.15.0 has requirement tensorboard<1.16.0,>=1.15.0, but you'll have tensorboard 2.0.0 which is incompatible.
ERROR: tensorflow 1.15.0 has requirement tensorflow-estimator==1.15.1, but you'll have tensorflow-estimator 2.0.1 which is incompatible.
ERROR: datascience 0.10.6 has requirement folium==0.2.1, but you'll have folium 0.8.3 which is incompatible.
ERROR: albumentations 0.1.12 has requirement imgaug<0.2.7,>=0.2.5, but you'll have imgaug 0.2.9 which is incompatible.
What's the solution? Should I use an external tool to solve this dependencies problem?
Uninstall conflicting dependencies. For tensorflow it would be:
pip uninstall tensorflow tensorflow-tensorboard tensorflow-estimator
(maybe there are some more, not sure).
Secondly, reinstall tensorflow by issuing (change pinned version to whatever you want, maybe new 2.0):
pip install tensorflow==1.15.0
Same for other dependencies, uninstall what's necessary and install with explicit version pinning as displayed by your error.
Finally, appropriate tensorboard is downloaded when you install tensorflow (same for estimator) at least in Tensorflow 2.0. If not, you may have to install those explicitly, same as your tensorflow version. Consult installed packages list if necessary.
I used to use virtualenv to create different project environments, same library (different versions). Recently, I installed Anaconda to do some Machine Learning. When I try to create a new environment using virtualenv I get this error:
(venv) usr#KC-SCE:~/Desktop/bTree$ pip install nltk
Requirement already satisfied: nltk in /home/usr/anaconda3/lib/python3.6/site-packages (3.3)
Requirement already satisfied: six in /home/usr/anaconda3/lib/python3.6/site-packages (from nltk) (1.11.0)
tensorflow-tensorboard 1.5.1 has requirement bleach==1.5.0, but you'll have bleach 2.1.3 which is incompatible.
tensorflow-tensorboard 1.5.1 has requirement html5lib==0.9999999, but you'll have html5lib 1.0.1 which is incompatible.
tensorboard 1.8.0 has requirement bleach==1.5.0, but you'll have bleach 2.1.3 which is incompatible.
tensorboard 1.8.0 has requirement html5lib==0.9999999, but you'll have html5lib 1.0.1 which is incompatible.
jupyterlab 0.32.1 has requirement jupyterlab_launcher<0.11.0,>=0.10.0, but you'll have jupyterlab-launcher 0.11.0 which is incompatible.
What I do not understand is that why I am not able to download a library that already exists! I may need it in another version or else.
I was trying to install weasyprint using command "pip install weasyprint".
It gave me error:
requests 2.18.4 has requirement chardet<3.1.0,>=3.0.2, but you'll have
chardet 2.3.0 which is incompatible.
tensorboard 1.8.0 has requirement html5lib==0.9999999, but you'll have
html5lib 1.0.1 which is incompatible.
bleach 1.5.0 has requirement html5lib!=0.9999,!=0.99999,
<0.99999999,>=0.999, but you'll have html5lib 1.0.1 which is
incompatible.
Does anyone know how to fix it?