tensorflow: Cannot find any way to install tensorflow<=2.15.0
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.15.0
Custom code
Yes
OS platform and distribution
Ubuntu 22.04.3
Mobile device
No response
Python version
3.11
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I want to install tensorflow in python and also then serve a model in a rust application. Since the only c++ bindings are for 2.15.0 (I cannot find any other compiled versions without building from source…which I tried and failed to do), I have to install tensorflow 2.15.0. I tried installing tensorflow 2.15.1 and training a model but the c++ bindings complain the model was trained using a version later than the c++ bindings (which is true)…so I assume I have to install tensorflow 2.15.0 or lower:
pip install "tensorflow==2.15.0"
ERROR: Could not find a version that satisfies the requirement tensorflow==2.15.0 (from versions: 2.16.0rc0, 2.16.1)
ERROR: No matching distribution found for tensorflow==2.15.0
or
pip install "tensorflow<=2.15.0"
ERROR: Could not find a version that satisfies the requirement tensorflow<=2.15.0 (from versions: 2.16.0rc0, 2.16.1)
ERROR: No matching distribution found for tensorflow<=2.15.0
I then tried to install 2.15 from source but since I don’t have 3 phds I cannot decipher the reasons why it fails (after taking 4 hours to download, unzip and then compile).
I’m at a total loss at what to do… if there was just a wheel available for some version below 2.15.1 or just more compiled c++ bindings available for something other than 2.15.0 then I could not be wasting my time.
The problem is even worse if I try and use and-cuda (but one thing at a time?).
Standalone code to reproduce the issue
pip install "tensorflow<=2.15.0"
Relevant log output
ERROR: Could not find a version that satisfies the requirement tensorflow<=2.15.0 (from versions: 2.16.0rc0, 2.16.1)
ERROR: No matching distribution found for tensorflow<=2.15.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (5 by maintainers)
I landed in this page while working on a device with TF 2.15 dependency.
tensorflow[and-cuda]==2.15.0caused various conflicts when I tried,2.15.1works instead. In case anyone needs, the following installation worked for me (it can be made simpler in several ways, e.g. one can skip conda and use pip/uv environment):Then, using the following code
I get: