Tensorflow-text: NotFoundError: _text_similarity_metric_ops.so not found - python

import tensorflow-text
Actually i'm trying to run on Windows 10 (Pro), version 1909.
Attempts to run on Python 3.8.5, 3.6.13, and 3.7 brought no result - i've got the same error.
Using Jupiter Notebook, conda (4.10.1)
Version of Tensorflow - 2.1.0
Downloading version of Tf-text is "tensorflow_text-2.4.3-cp36"
Now i'm trying to reinstall conda, switch tensorflow versions
I hope this issue will be fixed soon.

So, this problem was solved easy by myself!
All you have to do is:
Setup conda enviroment, in Anaconda
Then in Anaconda cmd run conda activate <your_enviroment_name>
pip install tensorflow==2.4.1, pip install tensorflow-text==2.4.1
Then it should works.
Remember, run on Python 3.7.10
Also guys from tensorflow says that you can run it on python 3.6 and 3.8, but be carefully with TF 2.4.1, i saw some info that Python 3.6 could not run just that current version.
Best wishes,
Temio

Related

The kernel failed to start as a dll could not be loaded

When ever i tried to run my notebook cell in vs code i encounter wit the following issuefailed to start kernal
my version of python is 3.9.15 and i had installed this in miniconda env, the vesrion of ipykernel is enter image description here. if i try to run same cell with my base env which has python version 3.10 it work.
i had uninstall my ipykernel and the reinstall upgrade and downgrade its version but still stuck with the same issue. if i downgrade the version of python to 3.8 this way its also working the issue only encounter with 3.9 version of python

ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (Windows Terminal)

Instructions from Supervisor
I am very new to Python and BashCode. My supervisor wants me to run code from a GitHub repository. I have cloned the repository from GitHub. Now he asks to create a virtual environment with anaconda packages installed. I downloaded Miniconda and using the conda command (the command is on the attached image). Now, the next step is to execute the following: "pip install -r requirements.txt" in the repository. I tried, but I receive the error that is in title. I tried "pip install tensorflow==1.15" but that does not work. I am very confused on what to do. Thank you. I am using Windows terminal
To install TensorFlow 1.15, Python version should be 3.5-3.7. Python 3.10 only supports the latest tensorflow releases Tensorflow version = 2.8, 2.9
Please install the Python version 3.7 which supports almost all the tensorflow version (>Tensorflow 1.13).
You can refer to this tested build configuration details for more details.

Problem installing tensorflow in virtual environment

This issue in some form has come up before, however I am having a variant of this issue.
I had python 3.8 installed. Tensorflow does not have a version for this python.
I therefore installed python 3.7 and set up a virtual environment using virtualenv.
In visual studio code I even updated the settings json "python.pythonPath": to the correct path for version 3.7 of python.
I install the correct version of tensorflow using the correct link for 3.7 on the site:
'''pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.1.0-cp37-cp37m-manylinux2010_x86_64.whl'''
But i still get the error
"ERROR: tensorflow_cpu-2.1.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform."
When i type python -V I still get Python 3.8.1, could this mean I am not correctly using the virtual environment?
However I have now set up virtual environment using anaconda which is limited to 3.7 and it still says 3.8 when using "python -V" and i get the same error when trying to install.
You can try to either reinstall anaconda, visual studio, or type in the command "pip install --upgrade tensorflow". This should work without the link.
After creating the virtual environment you need to activate it if you haven't already. Once you do, your command line prompt should indicate that a new version of Python, in your case 3.7 is now running.
I ended up using Anaconda with Python 3.6, it seems tensorflow would not work for 3.7 on windows.

How to find python version in anaconda continuum repo?

TensorFlow is not working in python 3.7, I wish to install anaconda with python 3.6.9, in the https://repo.continuum.io/archive/ I couldn't find which version, also the https://www.anaconda.com/distribution/#download-section having only for python 3.7.
How to find Anaconda2-5.3.1-Windows-x86.exe (in the archive) having which version of python. Looking for Windows
I am not looking to create conda env for python 3.6
By default, the detailed version is not supported.
If you want Python in version 3.6.9 (with Anaconda)
I recommend to install version 3.6. (I know you don't want...)
This seems to be a policy implemented by the Anaconda side for version-specific management.
By default Anaconda comes with Python 3.7.3, I installed that. Spyder opens with 3.7, Then in Anaconda Prompt, conda version is 4.7.10, with this Python downgrade it is not supported properly:
conda update conda
gives 4.7.11, then
conda install python=3.6.9
installs Python 3.6.9 smoothly, Spyder opens with 3.6,
Now TensorFlow works like a charm

Installing TensorFlow in python 3.5 Anaconda distro conda env

What I did to try and solve this issue:
Using Mac OS X
Using Anaconda distro currently in my computer as the path /Users/hongshuhong/anaconda/
Used conda instead of virtualenv because of my distribution of python. I referred to the guide here and tried to download the same with conda's package manager: https://www.tensorflow.org/versions/master/get_started/os_setup.html#download-and-setup
Tensorflow worked correctly when I created an anaconda env using the command conda create --name ML python=2.7 anaconda to state I'm using 2.7 python, then used this command conda install -c https://conda.anaconda.org/jjhelmus tensorflow
gathered from the Anaconda Cloud to attempt to download it. It worked when I said
$ python
>>> import tensorflow as tf
...
However, it doesn't really fix the issue:
However, I want to use the 3.5 distribution of python, simply to keep up with the times and not use outdated pythons.
I attempted to download it using the same way in python=3.5, but it raised this error when I tried to run the command conda install -c https://conda.anaconda.org/jjhelmus tensorflow :
Hint: the following packages conflict with each other:
- tensorflow
- python 3.5*
Use 'conda info tensorflow' etc. to see the dependencies for each package.
And I ran the conda info tensorflow to see what was going on and I got:
Fetching package metadata: ....
Error: No packages found in current osx-64 channels matching: tensorflow
This is really frustrating me and I'm not sure what to do. If there's no work around for this, I think I'll have to use Anaconda's python 2.7 distribution for TensorFlow experiments. If anyone has any idea how to solve this compatibility issue(or some other kind of issue), I'd be extremely grateful. Thanks.
EDIT: I'm pretty sure TensorFlow supports 3.5 because in their documentations they say they support 2.7 python and 3.3+. If there were no clues as to whether they support 3.5, I would have already given up and used 2.7 by now.
The version of TensorFlow packaged here is version 0.5.
Python 3.x support was introduced in TensorFlow 0.6, so you need to figure out how to install the newest version into Anaconda.
Usually you can install packages into anaconda using pip, but I haven't succeeded with TensorFlow.
EDIT: I just noticed that the documentation hasn't updated the url to the pip-wheel.
To install tensorflow in python 3.5 via pip, use the following command:
$ sudo easy_install --upgrade six
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py3-none-any.whl
This links to ...tensorflow-0.5.0-py2-none-any.whl, which is an older version of tensorflow for python 2.x.
Tensorflow get started page link.

Categories