安装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安装时常见报错以及解决方案

《Python安装时常见报错以及解决方案》:本文主要介绍在安装Python、配置环境变量、使用pip以及运行Python脚本时常见的错误及其解决方案,文中介绍的非常详细,需要的朋友可以参考下... 目录一、安装 python 时常见报错及解决方案(一)安装包下载失败(二)权限不足二、配置环境变量时常见报错及

nginx部署https网站的实现步骤(亲测)

《nginx部署https网站的实现步骤(亲测)》本文详细介绍了使用Nginx在保持与http服务兼容的情况下部署HTTPS,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值... 目录步骤 1:安装 Nginx步骤 2:获取 SSL 证书步骤 3:手动配置 Nginx步骤 4:测

MySQL8.2.0安装教程分享

《MySQL8.2.0安装教程分享》这篇文章详细介绍了如何在Windows系统上安装MySQL数据库软件,包括下载、安装、配置和设置环境变量的步骤... 目录mysql的安装图文1.python访问网址2javascript.点击3.进入Downloads向下滑动4.选择Community Server5.

CentOS系统Maven安装教程分享

《CentOS系统Maven安装教程分享》本文介绍了如何在CentOS系统中安装Maven,并提供了一个简单的实际应用案例,安装Maven需要先安装Java和设置环境变量,Maven可以自动管理项目的... 目录准备工作下载并安装Maven常见问题及解决方法实际应用案例总结Maven是一个流行的项目管理工具

MySql9.1.0安装详细教程(最新推荐)

《MySql9.1.0安装详细教程(最新推荐)》MySQL是一个流行的关系型数据库管理系统,支持多线程和多种数据库连接途径,能够处理上千万条记录的大型数据库,本文介绍MySql9.1.0安装详细教程,... 目录mysql介绍:一、下载 Mysql 安装文件二、Mysql 安装教程三、环境配置1.右击此电脑

在 Windows 上安装 DeepSeek 的完整指南(最新推荐)

《在Windows上安装DeepSeek的完整指南(最新推荐)》在Windows上安装DeepSeek的完整指南,包括下载和安装Ollama、下载DeepSeekRXNUMX模型、运行Deep... 目录在www.chinasem.cn Windows 上安装 DeepSeek 的完整指南步骤 1:下载并安装

python管理工具之conda安装部署及使用详解

《python管理工具之conda安装部署及使用详解》这篇文章详细介绍了如何安装和使用conda来管理Python环境,它涵盖了从安装部署、镜像源配置到具体的conda使用方法,包括创建、激活、安装包... 目录pytpshheraerUhon管理工具:conda部署+使用一、安装部署1、 下载2、 安装3

详解Java如何向http/https接口发出请求

《详解Java如何向http/https接口发出请求》这篇文章主要为大家详细介绍了Java如何实现向http/https接口发出请求,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 用Java发送web请求所用到的包都在java.net下,在具体使用时可以用如下代码,你可以把它封装成一

龙蜥操作系统Anolis OS-23.x安装配置图解教程(保姆级)

《龙蜥操作系统AnolisOS-23.x安装配置图解教程(保姆级)》:本文主要介绍了安装和配置AnolisOS23.2系统,包括分区、软件选择、设置root密码、网络配置、主机名设置和禁用SELinux的步骤,详细内容请阅读本文,希望能对你有所帮助... ‌AnolisOS‌是由阿里云推出的开源操作系统,旨

Ubuntu系统怎么安装Warp? 新一代AI 终端神器安装使用方法

《Ubuntu系统怎么安装Warp?新一代AI终端神器安装使用方法》Warp是一款使用Rust开发的现代化AI终端工具,该怎么再Ubuntu系统中安装使用呢?下面我们就来看看详细教程... Warp Terminal 是一款使用 Rust 开发的现代化「AI 终端」工具。最初它只支持 MACOS,但在 20