当build立docker图像时,pip版本失败

我试图从我的python应用程序创build一个docker镜像,但是在尝试安装时收到有关我的pip版本的错误消息:

Collecting tensorflow==1.2.1 (from -r requirements.txt (line 20)) Could not find a version that satisfies the requirement tensorflow==1.2.1 (from -r requirements.txt (line 20)) (from versions: ) No matching distribution found for tensorflow==1.2.1 (from -r requirements.txt (line 20)) You are using pip version 7.1.2, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 

但是,当我检查我的点子版本,这是最新的:

 pip -V pip 9.0.1 from /Users/xxx/anaconda/lib/python3.6/site-packages (python 3.6) 

那么为什么docker链接到错误的点子版本? 我在Mac高山脉上运行。