gpt4 book ai didi

python - 在 Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url
转载 作者:太空狗 更新时间:2023-10-29 20:24:58 28 4
gpt4 key购买 nike

我想安装 pymongo 库,但出现以下错误:

    (C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx>
conda install -c anaconda pymongo

Fetching package metadata ...
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/a
naconda/win-64/repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', por
t=443): Max retries exceeded with url: /anaconda/win-64/repodata.json (Caused by
ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000
00000054D6128>, 'Connection to conda.anaconda.org timed out. (connect timeout=9.
15)'))",),)

解决步骤:

1. Update C:\Users\\xxxxxxx\.condarc file with the following:

channels:
- defaults
ssl_verify: false
proxy_servers:
http: http://sproxy.fg.xxx.com:1000
https: https://sproxy.fg.xxx.com:1000

2. (C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx>
conda config --set ssl_verify False

附加信息:

(C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx>
conda info

Current conda install:

platform : win-64
conda version : 4.3.27
conda is private : False
conda-env version : 4.3.27
conda-build version : 3.0.22
python version : 3.6.2.final.0
requests version : 2.18.4
config file : C:\Users\xxxxxxx\.condarc
netrc file : None
offline mode : False
user-agent : conda/4.3.27 requests/2.18.4 CPython/3.6.2 Windows/7 W
indows/6.1.7601
administrator : False

许多在线帖子只是重新安装了 Anaconda,除了全新安装之外还有其他选择吗?

最佳答案

这很有魅力:-

只需复制这些:-

  1. libcrypto-1_1-x64.dll

  2. libssl-1_1-x64.dll

D:\Anaconda3\Library\binD:\Anaconda3\DLLs

关于python - 在 Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda. anaconda.org/anaconda/win-64 上安装 python 库的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50125472/

28 4 0

Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com