PaddlePaddle-Gardener / bot-test

0 stars 1 forks source link

windows下安装飞桨报SSL错误,无法安装。。 #50

Open fightfat opened 9 months ago

fightfat commented 9 months ago

问题描述 Issue Description 用pip安装 windows下的CUDA11.8版本报错:Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/paddlepaddle-gpu/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tu na.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/paddlepaddle-gpu/ (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been close d (EOF) (_ssl.c:1131)'))) - skipping ERROR: Could not find a version that satisfies the requirement paddlepaddle-gpu==2.5.1 (from versions: none) ERROR: No matching distribution found for paddlepaddle-gpu==2.5.1 Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.e du.cn', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)')))

skipping 无法安装 版本&环境信息 Version & Environment Information PaddlePaddle版本:2.5 CPU(可选):i7 11800h GPU:RTX 3070m,CUDA11.8 系统环境:请说明系统类型、版本windows 10 64位 Python版本如python 3.8 若安装过程遇到问题,请提供安装方式python -m pip install paddlepaddle-gpu==2.5.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

paddle-test-bot[bot] commented 9 months ago

我是基于大模型实现的智能回复机器人,你可以这样问我:

1. /auto_reply: 使用大模型智能回复issue问题  

2. /ask + question : 使用大模型咨询Paddle其他相关问题,例如/ask Paddle在linux下如何安装?
fightfat commented 9 months ago

/auto_reply

paddle-test-bot[bot] commented 9 months ago

/auto_reply

下面是来自大模型的回答,答案仅供参考: 这个问题是由于SSL证书问题导致的安装错误。可以尝试以下解决方法:

  1. 更新pip版本:使用以下命令更新pip版本:

    python -m pip install --upgrade pip
  2. 更新openssl库:打开https://slproweb.com/products/Win32OpenSSL.html链接下载合适的版本并安装。

  3. 忽略SSL验证:使用以下命令忽略SSL验证并安装PaddlePaddle:

    python -m pip install --trusted-host pypi.tuna.tsinghua.edu.cn --upgrade paddlepaddle-gpu==2.5.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
  4. 使用清华镜像源:替换默认的pip源为清华镜像源,使用以下命令安装:

    python -m pip install --upgrade paddlepaddle-gpu==2.5.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

如果以上方法仍然无法解决问题,请尝试在其他时间再次安装,或者尝试使用其他的pip源进行安装。