pip install -q git+https://github.com/tensorflow/docs.git报错
2023-09-27 14:26:28 时间
1.报错信息1
ERROR: Command errored out with exit status 128:
command: git clone -q https://github.com/tensorflow/docs.git /tmp/pip-req-build-ndg3zlg6
cwd: None
Complete output (1 lines):
fatal: unable to access 'https://github.com/tensorflow/docs.git/': gnutls_handshake() failed: Error in the pull function.
----------------------------------------
WARNING: Discarding git+https://github.com/tensorflow/docs.git. Command errored out with exit status 128: git clone -q https://github.com/tensorflow/docs.git /tmp/pip-req-build-ndg3zlg6 Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone -q https://github.com/tensorflow/docs.git /tmp/pip-req-build-ndg3zlg6 Check the logs for full command output.
2.解释
-q
参数,控制安装过程中的打印输出,q
指quite
,详细可使用pip --help
查看
去掉q
参数可打印更加详细的报错信息。
3.报错信息2及解决
(tf) lx@lx-rob:~/gitee/object_detection_task/cv_examples/tf_tutorials/basic_regression$ pip install git+https://github.com/tensorflow/docs.git
Collecting git+https://github.com/tensorflow/docs.git
Cloning https://github.com/tensorflow/docs.git to /tmp/pip-req-build-3gz5djsh
Running command git clone -q https://github.com/tensorflow/docs.git /tmp/pip-req-build-3gz5djsh
fatal: unable to access 'https://github.com/tensorflow/docs.git/': Failed to connect to github.com port 443: Connection timed out
WARNING: Discarding git+https://github.com/tensorflow/docs.git. Command errored out with exit status 128: git clone -q https://github.com/tensorflow/docs.git /tmp/pip-req-build-3gz5djsh Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone -q https://github.com/tensorflow/docs.git /tmp/pip-req-build-3gz5djsh Check the logs for full command output.
可以看到timeout了,试了一下github
打不开,去码云gitee
搜了个tensorflow_doc
的仓库,替换一下仓库地址就可以安装了
pip install git+https://gitee.com/hejuncheng1/tensorflow-docs.git
Collecting git+https://gitee.com/hejuncheng1/tensorflow-docs.git
Cloning https://gitee.com/hejuncheng1/tensorflow-docs.git to /tmp/pip-req-build-_589vul5
Running command git clone -q https://gitee.com/hejuncheng1/tensorflow-docs.git /tmp/pip-req-build-_589vul5
Collecting astor
Downloading astor-0.8.1-py2.py3-none-any.whl (27 kB)
Requirement already satisfied: absl-py in /home/lx/anaconda3/envs/tf/lib/python3.7/site-packages (from tensorflow-docs==0.0.0) (0.12.0)
Requirement already satisfied: six in /home/lx/anaconda3/envs/tf/lib/python3.7/site-packages (from tensorflow-docs==0.0.0) (1.15.0)
Collecting pathlib2
相关文章
- 2017 Android GitHub常用开源框架汇总
- 人生第一个过万 Star 的 github 项目诞生
- 看完这篇文章,你们都想去GitHub上班了吧
- Github是什么?看完你就了解一些了
- 手把手教你如何加入到github的开源世界!
- 配置github的pull request触发jenkins自动构建
- 将 GitHub 的某人的特定仓库复制到自己的账户下 的方法
- git push以后GitHub上文件夹灰色 不可点击
- GitHub上最火的、最值得前端学习的几个数据结构与算法项目!没有之一!
- ssh: connect to host github.com port 22: Connection refused
- GitHub入门之二 参与一个项目编写
- 提高国内访问 GitHub 的速度的 9 种方案
- git入门:git 和 GitHub的介绍