datamllab / tods

TODS: An Automated Time-series Outlier Detection System
http://tods-doc.github.io
Apache License 2.0
1.46k stars 194 forks source link

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

Open pirofti opened 3 years ago

pirofti commented 3 years ago

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

lhenry15 commented 3 years ago

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.

pirofti commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 git@github.com:datamllab/tods.git
(tods_test_venv_36) $ pip install -e .