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

编程知识 行业动态 更新时间:2024-06-13 00:19:38

想安装GitHub中的小程序,结果频繁报错:
(1)ERROR: Command errored out with exit status 128: git clone -q https://github…
(2)DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionalit…
(3)报错 Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?..
(4)Could not fetch URL https://pypi/simple/selenium/: There was a problem confirming the ssl…
找了很多方法,终于解决,记录下来:
首先针对第(3)条报错,在cmd中输入:


```python
pip install git

结果报错!无果…
接着针对第(2)条报错,在cmd中输入:

conda update --all

解决!接着在cmd中输入:

pip install git

OK!
下面,针对第(1)和第(4)条报错,在下是新手,查了资料,仅供参考:
例如,我想pip install git+https://github/xxxx/xxxxx,复制https://github/xxxx/xxxxx,进入网页,如下图所示:

点击图片上绿色的code,下载code选择Download ZIP格式,保存至自己的电脑F盘(自己随意存)里面。
然后解压,可以看见文件中有setup.py文件,这个就是要安装的小程序。接下来,如图所示:

按照图片中红色字体照做,cmd如下图所示,输入命令:

python setup.py install

回车,等待,即完成安装。

更多推荐

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

本文发布于:2023-03-28 15:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/89547a5de9fa0836dd675558f5f6847f.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   git   install   pip   XXX

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!