安装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

相关文章

Linux系统中卸载与安装JDK的详细教程

《Linux系统中卸载与安装JDK的详细教程》本文详细介绍了如何在Linux系统中通过Xshell和Xftp工具连接与传输文件,然后进行JDK的安装与卸载,安装步骤包括连接Linux、传输JDK安装包... 目录1、卸载1.1 linux删除自带的JDK1.2 Linux上卸载自己安装的JDK2、安装2.1

Linux卸载自带jdk并安装新jdk版本的图文教程

《Linux卸载自带jdk并安装新jdk版本的图文教程》在Linux系统中,有时需要卸载预装的OpenJDK并安装特定版本的JDK,例如JDK1.8,所以本文给大家详细介绍了Linux卸载自带jdk并... 目录Ⅰ、卸载自带jdkⅡ、安装新版jdkⅠ、卸载自带jdk1、输入命令查看旧jdkrpm -qa

mysql出现ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)的解决方法

《mysql出现ERROR2003(HY000):Can‘tconnecttoMySQLserveron‘localhost‘(10061)的解决方法》本文主要介绍了mysql出现... 目录前言:第一步:第二步:第三步:总结:前言:当你想通过命令窗口想打开mysql时候发现提http://www.cpp

MySQL Workbench 安装教程(保姆级)

《MySQLWorkbench安装教程(保姆级)》MySQLWorkbench是一款强大的数据库设计和管理工具,本文主要介绍了MySQLWorkbench安装教程,文中通过图文介绍的非常详细,对大... 目录前言:详细步骤:一、检查安装的数据库版本二、在官网下载对应的mysql Workbench版本,要是

Linux安装MySQL的教程

《Linux安装MySQL的教程》:本文主要介绍Linux安装MySQL的教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录linux安装mysql1.Mysql官网2.我的存放路径3.解压mysql文件到当前目录4.重命名一下5.创建mysql用户组和用户并修

pip无法安装osgeo失败的问题解决

《pip无法安装osgeo失败的问题解决》本文主要介绍了pip无法安装osgeo失败的问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一... 进入官方提供的扩展包下载网站寻找版本适配的whl文件注意:要选择cp(python版本)和你py

Android App安装列表获取方法(实践方案)

《AndroidApp安装列表获取方法(实践方案)》文章介绍了Android11及以上版本获取应用列表的方案调整,包括权限配置、白名单配置和action配置三种方式,并提供了相应的Java和Kotl... 目录前言实现方案         方案概述一、 androidManifest 三种配置方式

Python解析器安装指南分享(Mac/Windows/Linux)

《Python解析器安装指南分享(Mac/Windows/Linux)》:本文主要介绍Python解析器安装指南(Mac/Windows/Linux),具有很好的参考价值,希望对大家有所帮助,如有... 目NMNkN录1js. 安装包下载1.1 python 下载官网2.核心安装方式3. MACOS 系统安

Pycharm安装报错:Cannot detect a launch configuration解决办法

《Pycharm安装报错:Cannotdetectalaunchconfiguration解决办法》本文主要介绍了Pycharm安装报错:Cannotdetectalaunchconfigur... 本文主要介绍了Pycharm安装报错:Cannot detect a launch configuratio

pytorch+torchvision+python版本对应及环境安装

《pytorch+torchvision+python版本对应及环境安装》本文主要介绍了pytorch+torchvision+python版本对应及环境安装,安装过程中需要注意Numpy版本的降级,... 目录一、版本对应二、安装命令(pip)1. 版本2. 安装全过程3. 命令相关解释参考文章一、版本对