首页 > 其他分享 >pip安装更新第三方库报错解决

pip安装更新第三方库报错解决

时间:2024-03-24 22:31:26浏览次数:11  
标签:cn pyspark pypi 报错 tsinghua edu pip 第三方

今天使用pip安装pyspark库的时候一直报错

Collecting pyspark
  Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pyspark/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618) - skipping
  Could not find a version that satisfies the requirement pyspark (from versions: )
No matching distribution found for pyspark
You are using pip version 8.1.2, however version 24.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command 

使用pip3更新pip之后还是报错上图,网上找了很多方法,最后发现后面需要再加一个--trusted-host

pip install pyspark -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

但是还是报错

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-09fbRJ/pyspark/

最后发现是python版本问题,我用的是python3,pip默认是python2,所以要改成

pip3 install pyspark -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

最后终于成功!

标签:cn,pyspark,pypi,报错,tsinghua,edu,pip,第三方
From: https://blog.csdn.net/m0_68131322/article/details/136900998

相关文章

  • PhpStrom启动报错, java.net.BindException: Address already in use: bind
    问题描述:今天启动phpstromIDE时,突然报错,报错信息如下图:问题分析1.不正确关闭应用(强制关闭):可能是之前启动了一个本地web服务占了端口,在没有停掉服务,直接关闭IDE导致的(尝试了重启电脑也没解决)2.其他应用占用端口:安装了Hyper-V导致端口被占用?显然我的是第一种情况问题解决......
  • Python包的本地安装(.whl)报错:.whl is not a supported wheel on this platform
    以Pandas为例:1.报错:.whlisnotasupportedwheelonthisplatform.2.报错原因:下载的包与Python版本不相配3.解决步骤(共4步):Step1:在cmd输入命令“pipdebug--verbose”,查看可支持的版本。Step2:下载对应版本的安装包(根据......
  • Lecture 08 Shading 2 (Shading, Pipeline and Texture Mapping)
    Lecture08Shading2(Shading,PipelineandTextureMapping)ShadingfrequenciesP1每个面着色一次P2每个顶点着色一次,每个三角面内插值P3每个像素着色一次FlatShading(逐三角形)每个三角面是一个平面,只有一个法线在光滑表面效果不好Gouraudshading(逐顶点)每个......
  • C# list删除报错 使用for循环倒序删除
    C#list删除报错在C#中,如果您在遍历List的同时尝试删除元素,可能会遇到错误。因为这会改变List的结构,导致枚举器失效。解决方法:使用for循环倒序删除:点击查看代码for(inti=list.Count-1;i>=0;i--){if(/*条件*/){list.RemoveAt(i);}}......
  • POI升级5.2.2报错问题
    POI升级5.2.2报错问题标签:版本冲突报错信息Exceptioninthread"main"java.lang.NoSuchMethodError:org.apache.logging.log4j.Logger.atDebug()Lorg/apache/logging/log4j/LogBuilder; atorg.apache.poi.openxml4j.opc.PackageRelationshipCollection.parseRelati......
  • Qt程序运行报错
    报错内容PC环境为Ubuntu20.04,Qt版本是Qt5.12.9,AsensingViewer是编译好的程序./AsensingViewer:errorwhileloadingsharedlibraries:libicudata.so.56:cannotopensharedobjectfile:Nosuchfileordirectory问题分析查看程序依赖lddAsensingViewer注意到有个......
  • Windows库链接报错
    问题回溯今天拿到别人已经编译好的库,发现在链接的时候出现了报错[9/912.7/sec]LinkingCXXsharedmodulebin\plugins\AsensingPlugin\AsensingPlugin.dllFAILED:bin/plugins/AsensingPlugin/AsensingPlugin.dllcmd.exe/C"cd.&&"C:\ProgramFiles\CMake\bin\cmake.e......
  • foxy rviz2 "rviz_common/Time"报错问题
    报错内容Theclassrequiredforthispanel,'rviz_common/Time',couldnotbeloaded.Error:Accordingtotheloadedplugindescriptionstheclassrviz_common/Timewithbaseclasstyperviz_common::Paneldoesnotexist.DeclaredtypesareTeleopPanel......
  • CentOS加载yum源时报错 [Errno 14] HTTP Error 404 - Not Found Trying other mirror.
    报错内容:[[email protected]]#yumrepolistLoadedplugins:fastestmirror,product-id,search-disabled-repos,subscription-managerThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertoregister.Determiningf......
  • 【踩坑随笔】Kaggle安装langchain相关依赖报错
    kaggle执行语句%pipinstalldatasetslangchainsentence_transformerstqdmchromadblangchain_wenxin安装langchain相关依赖报错的时候出现了以下报错主要是版本不匹配,报错什么就再加载什么就可以了,执行下面的语句%pipinstallkeras-core执行结果%pipinstallw......