Cant Install Tensorflow 2.2.0rc0 in Ubuntu with Github Actions inside setup.py


When i try to install tensorflow>=2.2.0rc0 from setup.py running python setup.py install from a Github Actions Workflow, the output sendme this:

Searching for tensorflow>=2.2.0rc0 Reading https://pypi.org/simple/tensorflow/ No local packages or working download links found for tensorflow>=2.2.0rc0 error: Could not find suitable distribution for Requirement.parse('tensorflow>=2.2.0rc0') ##[error]Process completed with exit code 1.

This is my Github Action Workflow:

name: Test Deblurrer on: push: branches: - master - development pull_request: branches: - master - development jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [3.7] steps: - uses: actions/checkout@v1 - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | sudo apt-get install libpq-dev python-dev python -m pip install --upgrade pip python setup.py install pip install pytest - name: Test with pytest run: | PYTHONPATH=${PYTHONPATH}:/home/runner/work/deep-deblurring/deep-deblurring/backend:$(pwd) pytest

next is my setup.py:

<pre class="lang-py prettyprint-override">#!/usr/bin/python # coding=utf-8 """Setup and install the package and all the dependencies.""" from setuptools import setup, find_packages with open('requirements.txt') as pro: INSTALL_REQUIRES = pro.read().split('\n') setup( author='Whitman Bohorquez, Mo Rebaie', author_email='whitman-2@hotmail.com', name='deblurrer', license='MIT', description='Image Deblurring using Deep Learning Architecture', version='1.0.0', url='', packages=find_packages(), include_package_data=True, python_requires='>=3.6', install_requires=INSTALL_REQUIRES, classifiers=[ 'Development Status :: Alpha', 'Programming Language :: Python', 'Programming Language :: Python :: 3.6', 'Intended Audience :: Developers', ], )

and by last, my requirements.txt:

grpcio == 1.27.2 kaggle numpy tensorflow >= 2.2.0rc0 pandas

I dont understand why this happen on Github Actions, but when installing locally on Windows 10 it works as expected.

Thanks in advance!

PD: When i exec pip install tensorflow==2.2.0rc0 directly on the Github Action Workflow, and not inside python setup.py install it works too. So this dont work on setup.py only, and on Ubuntu only


The issue is with an outdated setuptools version. Since 2.0, tensorflow only ships wheels with the manylinux2010 tag on Linux. setuptools has added support for manylinux2010 in 42.0.0, so upgrading setuptools will resolve the issue:

$ pip install setuptools>=42.0.0



  • Section of code not executing in source mode
  • do I have to scope query output in Coldfusion?
  • What is the idiomatic way to build functions over newtypes (“wrapped types”) in Haskell?
  • Purpose of roles tags in tomcat-users.xml?
  • How to read the current URL in the react application
  • jQuery Waypoints - multiple divs with same CLASS
  • how to clean RAM programmatically cocoa?
  • Creating an Array of values from DB and passing into a Form
  • Is it possible to connect biometrics zkemkeeper using gsm in c#?
  • unable to set Row.Readonly=false in Datagridview in winforms
  • Rename Bootstrap Tab with jQuery
  • NSTimers causing leaks
  • How to store confidential PDF documents (file system vs. SQL) if we only use forms authentication
  • Delete file on sd card from a listview
  • How to return multiple result in the same query?
  • Variable with usage COMP in COBOL
  • Progress bar shadow only on filled part
  • problem parsing with XMLReader (using ReadSubTree)
  • Creating custom UTI for use with airdrop, iOS
  • exception thrown while building the java application using netbeans
  • Preventing Internet-accessing-method from delaying a toast popup
  • How to pass a bitfield (by reference) to a function?
  • Get method parameters with specific annotation in aspect in scala using java reflection
  • How to map a native query to POJO class using jpa and hibernate
  • Why do I need an infinite loop in STM32 programming?
  • How to make infinite threaded comments
  • CSV processing in Hadoop
  • API Gateway Encoding multipart/form-data
  • wxPython UltimateListCtrl check (tick) listitem programatically
  • How to add multiple legend titles (columns) in ggplot
  • Firebase suddenly reports invalid signature
  • How to print every 4th column up to nth column and from (n+1)th column to last using awk?
  • async GET request with body from browser
  • How to output data of primefaces DataGrid component by columns instead of by rows (transpose data)?
  • Create an Office365 mailbox from within C# Web API method
  • Strange results while measuring delta time on Linux
  • Regex not working in java 1.5
  • I am consuming a WCF service that requires headers from a .NET 2 website. How can I programmatically
  • How to use FirstOrDefault inside Include
  • Time Complexity of Fibonacci Algorithm [duplicate]