---
title: 下载TF-Serving源码依赖失败的解决办法
description: "获取TF-Serving源码依赖库时提示“Error in download_and_extract”。详细信息如下："
url: https://www.hikunpeng.com/document/detail/zh/SRA/ecosystemEnable/TensorFlowServing/kunpengtfserving_02_0014.html
sourcePath: /source/zh/SRA/ecosystemEnable/TensorFlowServing/kunpengtfserving_02_0014.html
indexId: c874675eccfa97d518b1c3166d78510d57d3b993fd0c764c3c937769a5a9219278
---
# 下载TF-Serving源码依赖失败的解决办法

#### 问题现象描述

获取TF-Serving源码依赖库时提示“Error in download_and_extract”。详细信息如下：

```
Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz] to /home/cya/boss/tfserving/serving/output/ba6572d0268f10026d9549fa2ae08318/external/bazel_skylib/temp8584446817647604858/bazel-skylib-1.3.0.tar.gz: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"
ERROR: Error computing the main repository mapping: no such package '@bazel_skylib//lib': java.io.IOException: Error downloading [https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz] to /home/cya/boss/tfserving/serving/output/ba6572d0268f10026d9549fa2ae08318/external/bazel_skylib/temp8584446817647604858/bazel-skylib-1.3.0.tar.gz: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"
```


#### 关键过程、根本原因分析

网络质量不佳导致代码下载失败。


#### 结论、解决方案及效果

进入--distdir指定目录即“path/to/tfserving/serving/proxy”，并使用wget下载对应的库。

```
cd proxy
wget https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz --no-check-certificate
```

网络质量不佳可能导致不同的依赖包下载出错，可根据该方法下载。
