首页 > 其他分享 >查询pytest --version报错 AttributeError: module ‘collections‘ has no attribute ‘Mapping‘,卸载pytest重新安装

查询pytest --version报错 AttributeError: module ‘collections‘ has no attribute ‘Mapping‘,卸载pytest重新安装

时间:2024-02-23 10:57:29浏览次数:24  
标签:重新安装 mirrors -- pytest 报错 aliyun pip com

 卸载pytest及关联的插件

先查询一下pytest及对应关联的插件

 

pip uninstall colorama exceptiongroup iniconfig packaging pluggy tomli allure-pytest pytest-allure-adaptor pytest

回车,每次都回复Y,同意卸载

 再重新安装pytest

pip install pytest -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

 

有个错误,单独安装一下

pip install attrs==19.2.0  -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

pip install allure-python-commons==2.13.2  -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

 

再查询版本号正常pytest --version

 

标签:重新安装,mirrors,--,pytest,报错,aliyun,pip,com
From: https://www.cnblogs.com/drct/p/18028987

相关文章

  • 【Unity】ScriptableObject使用之后,重新打开Unity会报错
    导致问题出现的原因:ScriptableObject的类与其他类放一起了具体请见:unity2020.3官方文档ScriptableObject部分解决方法:为ScriptableObject单独创建一个c#脚本,并将c#名称与ScriptableObject类名保持一致。猜测出现这样的原因,如果哪里不对烦请大佬指正一下:Unity中基本上都是会通......
  • Install fail! ResponseError: certificate has expired, GET https://r.npm.taobao.o
    ×Installfail!Error:certificatehasexpiredError:certificatehasexpiredatTLSSocket.onConnectSecure(_tls_wrap.js:1515:34)atTLSSocket.emit(events.js:400:28)atTLSSocket._finishInit(_tls_wrap.js:937:8)atTLSWrap.ssl.onhandshake......
  • 7+j就会报错,数字7就不会报错,我想加个变量应该怎么做呢?
    大家好,我是Python进阶者。一、前言前几天在Python白银交流群【黄志诚】问了一个Python处理Excel数据的问题。问题如下:问一个问题。7+j就会报错,数字7就不会报错,我想加个变量应该怎么做呢?二、实现过程这里【瑜亮老师】、【此类生物】、【巭孬......
  • 报错信息
     (base)➜DeepLSDgit:(main)✗pipinstall-eline_refinementLookinginindexes:https://pypi.tuna.tsinghua.edu.cn/simpleObtainingfile:///home/featurize/DeepLSD/line_refinementPreparingmetadata(setup.py)...doneInstallingcollectedpackages:line-......
  • Jenkins在jdk17的Tomcat上运行报错
    Jenkins在jdk17的Tomcat上运行报错一、环境宝塔:tomcat8.0jdk:jdk17二、保存项目时报错​Unabletomakefieldprotectedtransientintjava.util.AbstractList.modCountaccessible:modulejava.basedoesnot"opensjava.util"tounnamedmodule@6d15ca84​查看local......
  • npm i canvas 报错 [email protected] run install node-pre-gyp install --fallback-to-b
    今天在写项目的时候安装npmicanvas的时候一直报错。具体错误如下npmERR!commandfailednpmERR!commandC:\Windows\system32\cmd.exe/d/s/cnode-pre-gypinstall--fallback-to-build--update-binarynpmERR!node-pre-gypinfoitworkedifitendswithoknpmE......
  • 运行Xmind出现invalid configuration location报错的解决办法
    问题说明安装了XMind后,直接点击*.xmind文件,提示报错“invalidconfigurationlocation”。错误提示内容为:Theconfigurationareaat‘C:\Windows\systems.\configuration’isnotwritable.Pleasechooseawritablelocationusingthe‘-configuration’commandlineo......
  • Qt程序执行报错:"This application failed to start because not Qt platform plugin c
    Qt编译的exe程序执行时报错:出现以上错误的原因是由于的系统环境路径缺失或者exe程序目录下缺少对应的dll导致。以上为缺少对应的Qtplatformplugin。在Qt的安装目录下将platforms整个目录拷贝到exe所在目录下,即可执行。如果提示缺少对于的xxx.dll直接将对应缺失......
  • 使用html2Canvas截图网页时,网页存在图片报错:Tainted canvases may not be exported
     这是因为图片跨域产生的报错,看有的说法可以把所有图片进行允许跨域配置,但是比较麻烦。html2canvas有参数可以配置是否允许跨域 参数名称类型默认值描述allowTaintbooleanfalseWhethertoallowcross-originimagestotaintthecanvas---允许跨域background......
  • npm 报错 npm ERR! request to https://registry.npm.taobao.org/three failed, reaso
    1.问题描述npm使用淘宝镜像安装报错npmERR!codeCERT_HAS_EXPIREDnpmERR!errnoCERT_HAS_EXPIREDnpmERR!requesttohttps://registry.npm.taobao.org/xxxfailed,reason:certificatehasexpired2.错误原因错误提示已经告诉原因是淘宝镜像过期了!其实,早在2021......