unable to pip install tensorflow (anymore) - python

Until recently I was able to install the tensorflow 1.5.0 package when using python 3.6.7 on windows. Now I can't and from the message "from version" below it seems that no tensorflow package is available at all.
Did the support stop recently?
Some additional information taking into account the comments from micha137 and hoefling:
In linux, tensorflow is available in many flavors. This is the case with pip version 9.0.3, 10.0.1, and 18.1 I tried.
For example:
(env3)xxx#xxx-linux:/local/mnt/workspace/tmp$ pip install tensorflow==
Collecting tensorflow==
Could not find a version that satisfies the requirement tensorflow== (from versions: 0.12.0rc0, 0.12.0rc1, 0.12.0, 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0)
No matching distribution found for tensorflow==
(env3)xxx#xxx-linux:/local/mnt/workspace/tmp$ pip --version
pip 18.1 from /local/mnt/workspace/tmp/env3/lib/python3.4/site-packages/pip (python 3.4)
By contract, in Windows:
C:\tmp>pip --version
pip 18.1 from c:\users\xxx\appdata\local\programs\python\python36-32\lib\site-packages\pip (python 3.6)
C:\tmp>pip install tensorflow==
Collecting tensorflow==
Could not find a version that satisfies the requirement tensorflow== (from versions: )
No matching distribution found for tensorflow==
Some additional information:
C:\tmp>pip install -vvv tensorflow. -
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-ephem-wheel-cache-fmlkvkla
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-req-tracker-oijk67__
Created requirements tracker 'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-req-tracker-oijk67__'
Created temporary directory: C:\Users\xxx\AppData\Local\Temp\pip-install-tt2d7lx0
Cleaning up...
Removed build tracker 'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-req-tracker-oijk67__'
Invalid requirement: 'tensorflow.'
Followed by a lengthy traceback.
And:
C:\tmp>python -c "from setuptools import pep425tags; print(pep425tags.get_supported()[0])"
c:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\setuptools\pep425tags.py:89: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
warn=(impl == 'cp')):
c:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\setuptools\pep425tags.py:93: RuntimeWarning: Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
warn=(impl == 'cp')):
('cp36', 'cp36m', 'win32')

Judging by the output of
python -c "from setuptools import pep425tags; print(pep425tags.get_supported()[0])"
('cp36', 'cp36m', 'win32')
you have the supported Python version, but a 32 bit distribution installed (the platform tag is win32; for 64 bit Python on Windows, it should be win_amd64). Tensorflow is available for 64 bit distributions only (all the wheels on PyPI have platform tag either macosx_10_11_x86_64 for MacOS, or manylinux1_x86_64 for Linux, or win_amd64 for Windows). Installing the 64 bit Python (e.g. from python-3.6.8-amd64.exe) will do the trick.

You could try to list the available versions:
$ pip.exe install tensorflow==
Collecting tensorflow==
Could not find a version that satisfies the requirement tensorflow== (from ver sions: 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7. 0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9 .0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0)
No matching distribution found for tensorflow==

Related

Pipenv Install command not able to find compatible version

I am trying to install pyarrow 4.0.0 in my project. Python version is 3.6.
install pyarrow==4.0.0
I am getting the following error
ERROR: Could not find a version that satisfies the requirement pyarrow~=4.0.0 (from versions: 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.1, 0.16.0, 0.17.0, 0.17.1, 1.0.0, 1.0.1, 2.0.0, 3.0.0, 4.0.0, 4.0.1, 5.0.0, 6.0.0, 6.0.1)
ERROR: No matching distribution found for pyarrow~=4.0.0
How come it is not able to find the version 4.0.0 when it is listed in the versions list. I am also able to find it in the source mentioned in pipfile.
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
it should be able to install the package since it is available.
Device: Macbook pro M1. Have tried 4.0.1 and 4.0.* with no success.
The first pyarrow release that was released with wheels support for M1 was 5.0.0. See this JIRA ticket for some historic:
https://issues.apache.org/jira/browse/ARROW-12122

ERROR: Could not find a version that satisfies the requirement grpcio<2,>=1.29.0 (from apache-beam[gcp])

I'm encountering an issue while executing an Apache Beam pipeline in Dataflow (using DirectRunner).
I have a requirements.txt file containing apache-beam[gcp] among other libraries.
Following is the error TraceBack:
2021-08-04 12:08:24.574 | INFO | apache_beam.runners.portability.stager:_populate_requirements_cache:646 - Executing command: ['/usr/bin/python3', '-m', 'pip', 'download', '--dest', '/tmp/dataflow-requirements-cache', '-r', '$PATH/requirements.txt', '--exists-action', 'i', '--no-binary', ':all:']
2021-08-04 12:09:04.694 | ERROR | main:process:102 - An error has been caught in function 'process', process 'MainProcess' (13060), thread 'Thread-4' (140614797276928):
Later at the end, I got the following error:
WARNING: Discarding https://files.pythonhosted.org/packages/f1/23/62d3e82fa4c505f3195315c8a774b2e656b556d174329aa98edb829e48bc/grpcio-1.29.0.tar.gz#sha256=a97ea91e31863c9a3879684b5fb3c6ab4b17c5431787548fc9f52b9483ea9c25 (from https://pypi.org/simple/grpcio/).
Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement grpcio<2,>=1.29.0 (from apache-beam[gcp]) (from versions: 0.4.0a0, 0.4.0a1, 0.4.0a2, 0.4.0a3, 0.4.0a4, 0.4.0a5, 0.4.0a6, 0.4.0a7, 0.4.0a8, 0.4.0a13, 0.4.0a14, 0.5.0a0, 0.5.0a1, 0.5.0a2, 0.9.0a0, 0.9.0a1, 0.10.0a0, 0.11.0b0, 0.11.0b1, 0.12.0b0, 0.13.0, 0.13.1rc1, 0.13.1, 0.14.0rc1, 0.14.0, 0.15.0, 1.0.0rc1, 1.0.0rc2, 1.0.0, 1.0.1rc1, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.3, 1.2.0, 1.2.1, 1.3.0, 1.3.5, 1.4.0, 1.6.0, 1.6.3, 1.7.0, 1.7.3, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.6, 1.9.0rc1, 1.9.0rc2, 1.9.0rc3, 1.9.0, 1.9.1, 1.10.0rc1, 1.10.0rc2, 1.10.0, 1.10.1rc1, 1.10.1rc2, 1.10.1, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.11.1rc1, 1.11.1, 1.12.0rc1, 1.12.0, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0rc3, 1.13.0, 1.14.0rc1, 1.14.0rc2, 1.14.0, 1.14.1, 1.14.2rc1, 1.14.2, 1.15.0rc1, 1.15.0, 1.16.0rc1, 1.16.0, 1.16.1rc1, 1.16.1, 1.17.0rc1, 1.17.0, 1.17.1rc1, 1.17.1, 1.18.0rc1, 1.18.0, 1.19.0rc1, 1.19.0, 1.20.0rc1, 1.20.0rc2, 1.20.0rc3, 1.20.0, 1.20.1, 1.21.0rc1, 1.21.1rc1, 1.21.1, 1.22.0rc1, 1.22.0, 1.22.1, 1.23.0rc1, 1.23.0, 1.23.1, 1.24.0rc1, 1.24.0, 1.24.1, 1.24.3, 1.25.0rc1, 1.25.0, 1.26.0rc1, 1.26.0, 1.27.0rc1, 1.27.0rc2, 1.27.1, 1.27.2, 1.28.0.dev0, 1.28.0rc1, 1.28.0rc2, 1.28.0rc3, 1.28.1, 1.29.0, 1.30.0rc1, 1.30.0, 1.31.0rc1, 1.31.0rc2, 1.31.0, 1.32.0rc1, 1.32.0, 1.33.0rc1, 1.33.0rc2, 1.33.1, 1.33.2, 1.34.0rc1, 1.34.0, 1.34.1, 1.35.0rc1, 1.35.0, 1.36.0rc1, 1.36.0, 1.36.1, 1.37.0rc1, 1.37.0, 1.37.1, 1.38.0rc1, 1.38.0, 1.38.1, 1.39.0rc1, 1.39.0)
ERROR: No matching distribution found for grpcio<2,>=1.29.0
I use pip 21 and python 3.8
Did anyone already had a similar issue, and found a way to resolve it ?
Thanks
SOLVED !!
I finally found out what were the issue. I didn't specify the image tag of my Dataflow docker worker. So the job starts looking for a worker image version and started installing some dependencies, which causes this kind of error.
I then had to export environment variable DATAFLOW_WORKER_DOCKER_IMAGE_TAG and everythuing worked very well

Unable to start the Python language server

I opened up Atom and This error popped up for me, I am not sure what I should do here.
It asked me to do "python -m pip install 'python-language-server[all]'" but then when I ran that. It gave me the error
Error:
ERROR: Could not find a version that satisfies the requirement pylint>=2.5.0; extra == "all" (from python-language-server[all]) (from versions: 0.15.2, 0.16.0, 0.18.0, 0.18.1, 0.19.0, 0.20.0, 0.21.0, 0.21.1, 0.21.2, 0.21.3, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.25.1, 0.25.2, 0.26.0, 0.27.0, 0.28.0, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5)
ERROR: No matching distribution found for pylint>=2.5.0; extra == "all" (from python-language-server[all])
After this I tried "python -m pip install 'python-language-server'" but then this gave the error
Error:
WARNING: The script pyls is installed in '/Users/baner75418/Library/Python/2.7/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Please Help me with what I should do next also I am on macOS Big Sur.
It's a bug in python-language-server. I just reported it.
Meanwhile you can try using pip install --no-binary to install python-language-server from source distribution to work around the bug:
pip install --no-binary=python-language-server 'python-language-server[all]'

How to install version of tensorflow that isn't available through pip

I am attempting to install a specific version of tensorflow as part of the requirements for some code I'm trying to use (https://github.com/serengil/deepface)
When I attempt to install it like I normally do in command prompt I get the following.
C:\Windows\system32>pip install tensorflow==1.9.0
ERROR: Could not find a version that satisfies the requirement tensorflow==1.9.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1)
ERROR: No matching distribution found for tensorflow==1.9.0
I have referenced a few other Stackoverflow questions (Installing Tensorflow 1.9 in Windows) and haven't been able to find a solution or how to go about getting the version needed.
tensorflow==1.9.0 is available on PyPI (link). Your issue is that you are probably using Python 3.7, which 1.9.0 doesn't support, only Python 2.7 and 3.3 to 3.6. Install 64bit Python 3.6 and use it instead of 3.7.

Installing TensorFlow with Pip Python on Windows

Last month they released tensor-flow comparability with windows. Looking at the docs I've installed python 3.6 and run
pip install tensorflow-gpu
but it doesn't find it and therefore doesn't install it.
could not find a version that satisfies the requirements tensorflow-gpu(from versions)
Am I missing something basic? How can I fix or circumvent this?
A stable release of Python 3.6 for Windows became available on 12/23/2016, and we have not yet built TensorFlow packages for that version. (We will look into doing this after the holidays.) For now, your best options are:
Downgrade to Python 3.5 (64-bit version), which the pre-built packages support.
Try building TensorFlow from source.
Here is what i did to get tensorflow working with windows.
Download python 3.5.0 (64 bit from Python Releases for Windows)
Install it and check python version by running below command in cmd:
python --version
Python 3.5.0
Then run below command to upgrade pip to latest
python -m pip install --upgrade pip
Now install tensorflow using pip
pip install tensorflow
That's it you have installed tensorflow on windows. Below image shows what happens when you type above commands
Example to verify tensorflow is working.
$ python
...
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
I think you have to install Python 3.5 not 3.6. I'm having the same problem.
pip3 install tensorflow==tensorflow_version
Available tensorflow versions: (0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)

Categories

Resources