当前位置:   article > 正文

pip install git+https://github.com/XXX/XXX 命令报错_pip install git+报错

pip install git+报错

一、运行命令及错误

pip install git+https://github.com/xxx/xxx
在这里插入图片描述如果想通过git+https这种方式安装,可以参考官方文档。pip documentation 下面是官网的截图,可以看出其实官方是不推荐使用这种方式安装的。

在这里插入图片描述

二、原因

fatal: unable to access ‘https://github.com/xxx/xxx’: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
错误:不能正确访问"https://github.com/xxx/xxx
",TLS 被终止。
note:This error originates from a subprocess, and is likely not a problem with pip.
笔记:这个错误源资源子进程,可能不是pip的问题。

三、解决办法

推测:可能是下载出了问题,使用git clone 下载或者直接download下载到本地
在这里插入图片描述

然后进去该文件目录下,找到setup.py文件,在该目录下执行,即可解决错误。

git clone https://github.com/xxx/xxx.git
# 克隆项目 
cd DeepPurpose
# 切换目录
python setup.py install
# 从源项目有构建
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

参考

pip install git+https://github.com/XXX/XXX报错

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/821666
推荐阅读
相关标签
  

闽ICP备14008679号