开发者社区> 问答> 正文

ISAT_with_segment_anything下载问题

在下载ISAT_with_segment_anything时
输入命令pip install–r requirements. txt出现错误,是为什么



sam) D: al ISAT with segment anything master>cd.
(sam) D:\al>cd ISAT with segment anything master
(sam) D: al ISAT with segment anything master>pip insta11ollecting imgviz -1.2. 6(from -r requirements.txt nitae  f requirements. txtDownloading imgviz l2.6. tar.gz (7,7 MB)
-- 7.7/7.7 MB 49.9 kB/s eta 0:00:00
Installing build dependencies.. errorerror: subprocess exited with error
subprocess to install build dependencies did not run successfullypipexitcode: i8 linesCollecting setuptools> 40.8.0WARNING: Retrying Retry(total 4, connect None,read Noneredirect None.statusaNoconnection)': /packages/c7/42/belc7bbdd83elbfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.broken0.0-py3-none any.WARNING: Retrying Retry(total 3, connect None,read=None.redirect=None.status oneafterconnectionoroken)’: /packages/c7/42/belc7bbdd83e1bfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-noneanyWARNING: Retrying (Retry(total-2, connect-None, read-None, redirect-Nonestatus loneconnectionafterroken)’: /packages/c7/42/belc7bbdd83elbfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68, 0. 0-py3-noneWARNING: Retrying (Retry(total 1,connect None.read None. redirect None.status lone))brokenafterconnection/packages/c7/42/belc7bbdd83elbfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68,0. 0-y3-none any.whWARNING: Retrying (Retry(total-0, connect-None, read-None, redirect None,status None)) afterconnectionbroken)’: /packages/c7/42/belc7bbdd83elbfb160c9b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-none -any.mhlERROR: Could not instal1 packages due to an 0SError: HTpSConnectionPool host' files,pythonhosted. org , port-443):f7ccdbdb452c467fa/setuptools-68,0.0-py3-none-any, whl (Caused by SSLError (SSLZeroReturnhrror (6,TLS/SSL connection has bt
[end of output
This error originates from a subprocess, and is likely not a problem with pip.note:subprocess exited with errorrror
subprocess to install build dependencies did not run successfully.pipexitcode? labove for outputSee

展开
收起
算精通 2023-07-16 11:10:47 123 0
2 条回答
写回答
取消 提交回答
  • 根据提供的错误信息,看起来是与pip下载安装包时出现了连接问题或SSL错误。这可能是由于网络问题、防火墙设置或其他连接限制导致的。

    以下是一些可能的解决方案:

    1. 检查网络连接和代理设置:确保您的网络连接正常,并且没有任何代理服务器或防火墙设置限制了pip的访问。

    2. 尝试使用国内镜像源:在pip命令中使用国内镜像源可以加快下载速度并避免某些网络问题。例如,您可以使用类似于pip install -i https://pypi.tuna.tsinghua.edu.cn/simple package_name的命令来使用清华大学的镜像源。

    3. 手动下载并安装依赖项:如果pip安装失败,您可以尝试手动下载所需的依赖项,然后使用pip install path/to/dependency.whl命令来进行本地安装。

    4. 更新pip和setuptools:确保您正在使用最新版本的pip和setuptools。您可以通过运行pip install --upgrade pip setuptools来更新它们。

    5. 重启电脑和网络设备:有时候,重新启动计算机和网络设备可以解决临时的网络问题。

    2023-07-16 12:30:40
    赞同 展开评论 打赏
  • 北京阿里云ACE会长

    根据您提供的错误信息,似乎是在安装 Python 包时出现了问题。具体来说,安装 setuptools 时遇到了 SSL 连接问题,导致安装失败。

    以下是一些可能的解决方案:

    检查网络连接:请确保您的计算机可以访问互联网,并且没有任何网络连接问题。可以尝试使用其他设备或计算机测试您的网络连接是否正常。

    更新 pip 工具:请确保您的 pip 工具是最新版本。可以使用以下命令更新 pip 工具:

    Copy
    pip install --upgrade pip

    
    安装 setuptools:如果您没有安装 setuptools 工具,请尝试使用以下命令安装该工具:
    
    Copy
    pip install setuptools
    尝试使用国内源:如果您位于中国大陆或其他网络连接速度较慢的地区,可以尝试使用国内的 Python 包源,例如清华大学的镜像源。可以使用以下命令配置 pip 使用清华大学的镜像源:
    
    Copy
    pip config set global.index-url [https://pypi.tuna.tsinghua.edu.cn/simple/ ↗](https://pypi.tuna.tsinghua.edu.cn/simple/)
    
    2023-07-16 11:16:13
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载