0


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

目录

一、运行命令及错误

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
# 从源项目有构建

参考

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

标签: git pip python

本文转载自: https://blog.csdn.net/syucsdn/article/details/128451667
版权归原作者 smallAction 所有, 如有侵权,请联系我们删除。

“pip install git+https://github.com/XXX/XXX 命令报错”的评论:

还没有评论