tods icon indicating copy to clipboard operation
tods copied to clipboard

ERROR: Could not find a version that satisfies the requirement tensorflow=2.2 (from tods)

Open pirofti opened this issue 4 years ago • 4 comments
trafficstars

Running pip install -e . from $ python -m venv testenv gives the title error.

pirofti avatar Mar 11 '21 15:03 pirofti

Could you provide the version of the pip? I cannot reproduce the error, and I think the problem might caused by the outdated version of pip.

lhenry15 avatar Mar 20 '21 02:03 lhenry15

I am running Arch Linux that is kept up to date. Is the pip version correct?

$ pip --version
pip 20.3.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)

By the way, the tamu_d3m dependency can not properly run with python versions more recent than python 3.6 because of pytypes. I will create a separate issue for that a bit later.

Thank you for looking into this, Paul

pirofti avatar Mar 22 '21 10:03 pirofti

Seems pip was outdated (did it happen in the meantime?). Updated to pip version 21.0.1 -- same thing.

(tods) [pirofti@ripper tods]$ pip install -e .
Obtaining file:///home/pirofti/src/tods
Collecting Jinja2
  Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting numpy==1.18.2
  Using cached numpy-1.18.2.zip (5.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting simplejson==3.12.0
  Using cached simplejson-3.12.0.tar.gz (77 kB)
Collecting scikit-learn==0.22.0
  Using cached scikit-learn-0.22.tar.gz (6.9 MB)
Collecting statsmodels==0.11.1
  Using cached statsmodels-0.11.1.tar.gz (15.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting PyWavelets>=1.1.1
  Using cached PyWavelets-1.1.1-cp39-cp39-manylinux1_x86_64.whl (4.3 MB)
Collecting pillow==7.1.2
  Using cached Pillow-7.1.2.tar.gz (38.9 MB)
ERROR: Could not find a version that satisfies the requirement tensorflow==2.2 (from tods)
ERROR: No matching distribution found for tensorflow==2.2
(tods) [pirofti@ripper tods]$ pip --version   
pip 21.0.1 from /home/pirofti/tods/lib/python3.9/site-packages/pip (python 3.9)

pirofti avatar Mar 22 '21 13:03 pirofti

Coming back to this, I managed to work around it by using Python 3.6.

$ python3.6 -m venv tods_test_venv_36
$ source tods_test_venv_36/bin/activate
(tods_test_venv_36) $ pip install --upgrade pip
(tods_test_venv_36) $ git clone [email protected]:datamllab/tods.git
(tods_test_venv_36) $ pip install -e .

pirofti avatar Apr 18 '21 16:04 pirofti