安装doccano包 ERROR: Command errored out with exit status 1:Could not fetch URL https://pypi.org/simpl

本文主要是介绍安装doccano包 ERROR: Command errored out with exit status 1:Could not fetch URL https://pypi.org/simpl,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

安装doccano包 ERROR: Command errored out with exit status 1:Could not fetch URL https://pypi.org/simple/doccano/: There was a problem confirming the ssl certificate: ERROR: No matching distribution found for doccano


https://pypi.org/simple/doccano/: There was a problem confirming the ssl certificate:
ERROR: No matching distribution found for doccano)

问题
安装doccano 出现问题

Could not fetch URL https://pypi.org/simple/doccano/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/doccano/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement doccano (from versions: none)
ERROR: No matching distribution found for doccano

(打不开网页,下载不了匹配的doccano)
环境:win 10
anaconda 自带python 3.7
单独下载 python 3.9.6

解决
1.更新pip 版本

pip install --upgrade pip -http://mirrors.aliyun.com/pypi/simple/

2.在安装的python3.9.6\Scripts 中cmd pip install doccano

3.带上国内网站,并设置为trusted-host 建议使用阿里云

pip install doccano -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

详细步骤:
doccano 要求是python 3.8 +
所以新下载python 3.9.6 在D盘
在这里插入图片描述
在这里插入图片描述

该配置环境的统统写上,一个不落
开始就出现了问题
在这里插入图片描述

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/doccano/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/doccano/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/doccano/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/doccano/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/doccano/
Could not fetch URL https://pypi.org/simple/doccano/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/doccano/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement doccano (from versions: none)
ERROR: No matching distribution found for doccano

解决方案
就是下载不了,需要增加 国内镜像网址
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

第二个问题出现
解决方案:对应的python 安装路径下的Scripts 文件进行cmd

ERROR: Command errored out with exit status 1:command: 'D:\anaconda\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\MAC\\AppData\\Local\\Temp\\pip-install-wko4jtni\\doccano\\setup.py'"'"'; __file__='"'"'C:\\Users\\MAC\\AppData\\Local\\Temp\\pip-install-wko4jtni\\doccano\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\MAC\AppData\Local\Temp\pip-install-wko4jtni\doccano\pip-egg-info'cwd: C:\Users\MAC\AppData\Local\Temp\pip-install-wko4jtni\doccano\Complete output (38 lines):WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools-scm/WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools-scm/WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools-scm/WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools-scm/WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/setuptools-scm/ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)ERROR: No matching distribution found for setuptools_scmTraceback (most recent call last):File "D:\anaconda\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_eggsubprocess.check_call(cmd)File "D:\anaconda\lib\subprocess.py", line 363, in check_callraise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '['D:\\anaconda\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\MAC\\AppData\\Local\\Temp\\tmprf49aki6', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.During handling of the above exception, another exception occurred:Traceback (most recent call last):File "<string>", line 1, in <module>File "C:\Users\MAC\AppData\Local\Temp\pip-install-wko4jtni\doccano\setup.py", line 80, in <module>'Programming Language :: Python :: Implementation :: PyPy'File "D:\anaconda\lib\site-packages\setuptools\__init__.py", line 143, in setup_install_setup_requires(attrs)File "D:\anaconda\lib\site-packages\setuptools\__init__.py", line 138, in _install_setup_requiresdist.fetch_build_eggs(dist.setup_requires)File "D:\anaconda\lib\site-packages\setuptools\dist.py", line 721, in fetch_build_eggsreplace_conflicting=True,File "D:\anaconda\lib\site-packages\pkg_resources\__init__.py", line 783, in resolvereplace_conflicting=replace_conflictingFile "D:\anaconda\lib\site-packages\pkg_resources\__init__.py", line 1066, in best_matchreturn self.obtain(req, installer)File "D:\anaconda\lib\site-packages\pkg_resources\__init__.py", line 1078, in obtainreturn installer(requirement)File "D:\anaconda\lib\site-packages\setuptools\dist.py", line 777, in fetch_build_eggreturn fetch_build_egg(self, req)File "D:\anaconda\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_eggraise DistutilsError(str(e))distutils.errors.DistutilsError: Command '['D:\\anaconda\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\MAC\\AppData\\Local\\Temp\\tmprf49aki6', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

具体问题是
在这里插入图片描述
找不到自动对应的版本,提示setuptools_scm 有问题
在其他人的bug案例中,出现了比如:
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

pip install 包 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
附件:
搜集了一些国内的pip源,如下:

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
————————————————

主要意思就是位于pypi.douban.com的存储库不是受信任的或安全的主机,正在被忽略。
要求使用“–trusted host pypi.douban.com”允许此警告

这篇关于安装doccano包 ERROR: Command errored out with exit status 1:Could not fetch URL https://pypi.org/simpl的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/323442

相关文章

Python UV安装、升级、卸载详细步骤记录

《PythonUV安装、升级、卸载详细步骤记录》:本文主要介绍PythonUV安装、升级、卸载的详细步骤,uv是Astral推出的下一代Python包与项目管理器,主打单一可执行文件、极致性能... 目录安装检查升级设置自动补全卸载UV 命令总结 官方文档详见:https://docs.astral.sh/

Nexus安装和启动的实现教程

《Nexus安装和启动的实现教程》:本文主要介绍Nexus安装和启动的实现教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、Nexus下载二、Nexus安装和启动三、关闭Nexus总结一、Nexus下载官方下载链接:DownloadWindows系统根

Java SWT库详解与安装指南(最新推荐)

《JavaSWT库详解与安装指南(最新推荐)》:本文主要介绍JavaSWT库详解与安装指南,在本章中,我们介绍了如何下载、安装SWTJAR包,并详述了在Eclipse以及命令行环境中配置Java... 目录1. Java SWT类库概述2. SWT与AWT和Swing的区别2.1 历史背景与设计理念2.1.

安装centos8设置基础软件仓库时出错的解决方案

《安装centos8设置基础软件仓库时出错的解决方案》:本文主要介绍安装centos8设置基础软件仓库时出错的解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录安装Centos8设置基础软件仓库时出错版本 8版本 8.2.200android4版本 javas

Pytorch介绍与安装过程

《Pytorch介绍与安装过程》PyTorch因其直观的设计、卓越的灵活性以及强大的动态计算图功能,迅速在学术界和工业界获得了广泛认可,成为当前深度学习研究和开发的主流工具之一,本文给大家介绍Pyto... 目录1、Pytorch介绍1.1、核心理念1.2、核心组件与功能1.3、适用场景与优势总结1.4、优

conda安装GPU版pytorch默认却是cpu版本

《conda安装GPU版pytorch默认却是cpu版本》本文主要介绍了遇到Conda安装PyTorchGPU版本却默认安装CPU的问题,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的... 目录一、问题描述二、网上解决方案罗列【此节为反面方案罗列!!!】三、发现的根本原因[独家]3.1 p

windows系统上如何进行maven安装和配置方式

《windows系统上如何进行maven安装和配置方式》:本文主要介绍windows系统上如何进行maven安装和配置方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不... 目录1. Maven 简介2. maven的下载与安装2.1 下载 Maven2.2 Maven安装2.

Redis指南及6.2.x版本安装过程

《Redis指南及6.2.x版本安装过程》Redis是完全开源免费的,遵守BSD协议,是一个高性能(NOSQL)的key-value数据库,Redis是一个开源的使用ANSIC语言编写、支持网络、... 目录概述Redis特点Redis应用场景缓存缓存分布式会话分布式锁社交网络最新列表Redis各版本介绍旧

在Spring Boot中实现HTTPS加密通信及常见问题排查

《在SpringBoot中实现HTTPS加密通信及常见问题排查》HTTPS是HTTP的安全版本,通过SSL/TLS协议为通讯提供加密、身份验证和数据完整性保护,下面通过本文给大家介绍在SpringB... 目录一、HTTPS核心原理1.加密流程概述2.加密技术组合二、证书体系详解1、证书类型对比2. 证书获

Linux下安装Anaconda3全过程

《Linux下安装Anaconda3全过程》:本文主要介绍Linux下安装Anaconda3全过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录简介环境下载安装一、找到下载好的文件名为Anaconda3-2018.12-linux-x86_64的安装包二、或者通