hengluchang / deep-news-summarization

News summarization using sequence to sequence model with attention in TensorFlow.
MIT License
185 stars 61 forks source link

Correct TensorFlow version #4

Closed xiaoxu193 closed 6 years ago

xiaoxu193 commented 6 years ago

just using 0.12 causes error:

 Could not find a version that satisfies the requirement tensorflow==0.12 (from -r requirements.txt (line 1)) (from versions: 0.12.1, 1.0.0, 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)
No matching distribution found for tensorflow==0.12 (from -r requirements.txt (line 1))
hengluchang commented 6 years ago

Do you mind specifying your pip version?

I am using pip 9.0.3 and pip install tensorflow == 0.12 will download tensorflow version 0.12.0 like below: Collecting tensorflow==0.12 Downloading tensorflow-0.12.0-cp35-cp35m-macosx_10_11_x86_64.whl (38.4MB) 100% |████████████████████████████████| 38.5MB 13.8MB/s

xiaoxu193 commented 6 years ago

I'm doing pip3 install -r requirements.txt since I figured it's a Python 3 project

hengluchang commented 6 years ago

I only have one python version (python3) in my virtualenv, therefore pip is the same as pip3 in this setting and pip3 install tensorflow == 0.12 will download tensorflow version 0.12.0 as well. Not sure why tensorflow 0.12.0 is not an option for your pip3. Does pip3 install tensorflow == 0.12.0 works for you? I think tensorflow 0.12.0 is still on PyPI from this link below: https://pypi.python.org/pypi/tensorflow/0.12.0.

xiaoxu193 commented 6 years ago

Doing pip3 install tensorflow==0.12 still can't locate the package:

pip3 install tensorflow==0.12

Collecting tensorflow==0.12
  Could not find a version that satisfies the requirement tensorflow==0.12 (from versions: 0.12.1, 1.0.0, 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)
No matching distribution found for tensorflow==0.12
hengluchang commented 6 years ago

Not sure why that is the case, I will merge your PR since tensorflow 0.12.1 library works with the code in this repo as well.