PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, August 24, 2022

[FIXED] How to install old version of tensorflow on docker image

 August 24, 2022     docker, module, pip, tensorflow     No comments   

Issue

I need to use tensorflow==1.15, but when I try

pip install tensorflow==1.15

I get an Error:

ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1)
ERROR: No matching distribution found for tensorflow==1.15

I'm working inside a docker container built from an image pulled from originally pulled from https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorflow

So is the problem related to the docker image?

I'm having this problem for other modules (listed in requirements.txt at this link: https://github.com/hojonathanho/diffusion/blob/master/requirements.txt)


Solution

Based on the error message, I suspect that you have pulled a tensorflow 2 based image from the nvidia registry. Make sure that the tf version you specify in the command docker run --gpus all -it --rm nvcr.io/nvidia/tensorflow:xx.xx-tfx-py3 is 1, e.g., docker run --gpus all -it --rm nvcr.io/nvidia/tensorflow:22.04-tf1-py3.

There are probably more available, but you can see the most recent tags in the Pull Tag dropdown: Nvidia Tensorflow Pull Tags



Answered By - sloppypasta
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing