如何在Anaconda Windows 10中安装wget?

2024-09-29 01:21:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图按照这个名为https://github.com/conda-forge/python-wget-feedstock的网站的说明安装wget。但是,我得到如下所示的错误消息,我不知道它的实际含义。有没有办法在windows 10中从anaconda安装wget? enter image description here

enter image description here

使用conda安装时出错-c menpo wget enter image description here


Tags: httpsgithubcom消息网站windows错误anaconda
3条回答

试试这个

conda install -c menpo wget

如果检查错误消息,您将获得连接超时,这很可能与您的代理配置有关

使用此命令查看代理服务器

conda config --show

如果存在任何代理服务器,您可以通过

conda config --remove-key proxy_servers. 

它将从anaconda配置中删除保存的代理服务器。然后跑,

conda clean --source-cache

但是,如果您支持公司代理,则必须正确设置它们

set http_proxy=http://username: password@domain.com:{port}
set https_proxy=https://username: password@domain.com:{port}

尽管我过去经常使用wget(在PHP中,回到过去),但在我看来,如果可能的话,您最好调整您的工作流以使用requests

为了让wget安装到Win10 x64版本上,我与Anaconda进行了数小时的斗争,最终我咬紧牙关,对其进行了重构以消除依赖性

requests并不比wget慢,以我的经验:我每个月下载非常大的GIS数据文件(总计约3.4GB),总下载时间基本上没有因切换而改变

相关问题 更多 >