当前位置: 首页 > article >正文

【pip install报SSL类错误】

Conda/pip安装依赖报错ssl

  1. 设置VPN(Proxy)
    报错ssl相关pip错误:
pip install --proxy=http://127.0.0.1:7897 <package-name>
也可以一次配置:pip config set global.proxy http://127.0.0.1:port

pip config list查看当前配置

  1. 取消VPN设置(有时候使用一些脚本会报错)
    报错如下:
Traceback (most recent call last):
  File "/media/c303-2/DATA1/cuiy/pyProj/StableDiffusionNew/lora-scripts/mikazuki/dataset-tag-editor/scripts/launch.py", line 101, in <module>
    import interface
  File "/media/c303-2/DATA1/cuiy/pyProj/StableDiffusionNew/lora-scripts/mikazuki/dataset-tag-editor/scripts/interface.py", line 12, in <module>
    import gradio as gr
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/gradio/components/__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 13, in <module>
    from gradio.components.base import IOComponent, _Keywords
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/gradio/components/base.py", line 29, in <module>
    from gradio.blocks import Block, BlockContext
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/gradio/blocks.py", line 28, in <module>
    from gradio import (
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/gradio/networking.py", line 20, in <module>
    from gradio.routes import App
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/gradio/routes.py", line 99, in <module>
    client = httpx.AsyncClient()
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/httpx/_client.py", line 1395, in __init__
    proxy_map = self._get_proxy_map(proxies, allow_env_proxies)
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/httpx/_client.py", line 216, in _get_proxy_map
    return {
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/httpx/_client.py", line 217, in <dictcomp>
    key: None if url is None else Proxy(url=url)
  File "/usr/local/anaconda3/envs/lora_env/lib/python3.10/site-packages/httpx/_config.py", line 336, in __init__
    raise ValueError(f"Unknown scheme for proxy URL {url!r}")

禁用代理:

unset HTTP_PROXY HTTPS_PROXY NO_PROXY ALL_PROXY
unset http_proxy https_proxy no_proxy all_proxy

http://www.kler.cn/a/408661.html

相关文章:

  • windows C#-生成和使用异步流(上)
  • 使用timm库加载模型与模型权重
  • 基于SSM的婚庆管理系统+LW示例参考
  • linux-进程间通信
  • 【机器学习chp5】线性回归
  • 如何在 UniApp 中实现 iOS 版本更新检测
  • 【Anaconda】Pycharm如何配置conda虚拟环境
  • 深入理解 JVM 中的 G1 垃圾收集器原理、算法、过程和参数配置
  • YOLOv11融合[ECCV 2018]RCAN中的RCAB模块及相关改进思路
  • _computed _destinations() 为什么模板不写()
  • 渗透测试---shell(6)if条件判断与for循环结构
  • Vue小项目(开发一个购物车)
  • realme gt neo6官方刷机包 全量升级包下载
  • jar包解压和重新打包
  • 微信小程序 表单验证(async-validator)
  • 基于Gradle搭建Spring6.2.x版本源码阅读环境
  • Alluxio在小红书的实践:加速云端机器学习
  • HarmonyOS Next 浅谈 发布-订阅模式
  • 【热门主题】000062 云原生后端:开启高效开发新时代
  • IDEA运行程序》java: 程序包XX不存在
  • shell编程之awk
  • MySQL:IF()函数根据指定条件返回不同的值
  • 【ubuntu+win】Win10+Ubuntu22.04双系统给ubuntu系统中的某个分区进行扩容(从400G->800G)数据无损坏
  • Vue实训---4-使用Pinia实现menu菜单展示/隐藏
  • AWS EventBridge 和 Lambda 监控 ECS 事件并发送钉钉通知
  • Unity图形学之着色器之间传递参数