I tried to install stellargraph in a Python 3.6.13 venv. It threw the following error:
Then I ran pip install --upgrade pip and re-ran the installation. It worked. I want to understand why upgrading pip was the game changer. The error related to TensorFlow had nothing to do with it.
It is pretty self-explanatory from your console output. stellargraph needs tensorflow>=2.1.0 which isn't not supported by your pip version 18.1.
So when you updated pip to 21.0.1, it could find a successful distribution of tensorflow (>2.1.0) and could therefore install stellargraph in the correct manner.
Related
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
tensorflow from https://files.pythonhosted.org/packages/42/71/b5fc9db0e52e86b7ea51cf929bc93b39a7ca49ad2ece053d2a2b1568cddd/tensorflow-2.8.0-cp310-cp310-win_amd64.whl#sha256=b7170844ae6b048d82a9d7a61b2fa627f2e16cb829267bf0ce4b3a0de0a61054:
Expected sha256 b7170844ae6b048d82a9d7a61b2fa627f2e16cb829267bf0ce4b3a0de0a61054
Got c907668200f258e76d81c26c182f1290f3129da32d1548e75175ae8ab552d6fc
Upgrade Tensorflow.
pip3 install --upgrade pip
pip3 install --upgrade tensorflow
Install latest Tensorflow
pip3 install tensorflow
Running on MacOS, Catalina.
Other Details:
Jupyter Notebook
!pip install --no-deps keras==2.2.4
!pip install --no-deps tensorflow==1.15.3
Python Version 3.7
Following virtually step-by-step from: https://machinelearningmastery.com/how-to-train-an-object-detection-model-with-keras/
Anyone encounter this error / know how to resolve?
Resolved by restarting Jupyter Notebook kernel. Consulted various resources online to install / uninstall packages and items, so difficult to pinpoint was produced the desired result -- but for those encountering this, ensure to restart kernel.
On Windows, in my Anaconda virtual environment running Python 3.7, I have fixed this issue by simply upgrading TensorFlow and Keras to the latest versions.
I did this by running the following PIP command in my Anaconda terminal:
pip install tensorflow --user --upgrade
pip install keras --user --upgrade
Running into the below error when I try to install Tensorflow from command line ,
Running command
pip install tensorflow
Post this when I run the pip update command
python -m pip install --upgrade pip
this says that Pip is already updated version
So tensorflow requires me to get latest version of pip but when I go and try to update pip , it seems the latest version is already there.
Python version is - Python 3.7.0
To install Tensorflow with pip, it's version should be 19.0 or later as per system requirements
Since you are using lower version of pip, hence received the upgrade recommendation.
Ideal way of Tensorflow installation through pip as below
# Requires the latest pip
pip install --upgrade pip
# Current stable release for CPU and GPU
pip install tensorflow
For more details please refer
I have tensorflow 1.11.9 for python 3 and am trying to install tflearn.
I tried installation using:
"pip3 install git+https://github.com/tflearn/tflearn.git"
"pip3 install tflearn"
"pip install git+https://github.com/tflearn/tflearn.git"
"pip install git+https://github.com/tflearn/tflearn.git"
Nothing seems to work. pip install is installing a tflearn version for python 2 (I have python2.7 and 3.4 on Ubuntu 14.04), whereas pip3 is claiming that installation is successful, but I get an error saying
"No module named 'tensorflow.contrib.rnn.python.ops.core_rnn'".
Can anyone suggest what am I doing wrong? I would be happy to provide any further information that might be required. Thanks in advance.
I think your tensorflow version is probably a bit low. Current one is 1.4
I figured out that I was installing tensorflow using
sudo pip3 install --upgrade tfBinaryURL,
where, tfBinaryURL identifies the proper URL of the TensorFlow Python package. Doing the tensorflow installation using
pip3 install tensorflow
and then installling tflearn using
pip3 install git+github.com/tflearn/tflearn.git
solves my problem.
I installed latest tensorflow version as:
sudo pip2 install tensorflow
But while import layers as
from tensorflow.contrib import layers
I get an error:
cannot import name bayesflow
What am I missing?
I am using Ubuntu 14.
Was in the similar position as you: tf.contrib.data.TFRecordDataset(filenames) was generating the same error. After a lot of searching and trying I found that I should update dask. So
pip install --upgrade dask
solved the problem for me.
For those who still experience this problem, the best is to upgrade tensorflow with sudo pip install --upgrade tensorflow or even uninstall it sudo pip uninstall tensorflow and reinstall it sudo pip install tensorflow.
When it's done you have to close the ipython or any shell you are using (this is important)