简体   繁体   English

我如何在 Anaconda Windows 10 中安装 wget?

[英]How do i install wget in Anaconda Windows 10?

I tried to follow the instructions from this website called https://github.com/conda-forge/python-wget-feedstock to install wget.我试图按照这个名为https://github.com/conda-forge/python-wget-feedstock的网站的说明来安装 wget。 However, i get the error message as shown below and i have no clue what it actually means.但是,我收到如下所示的错误消息,但我不知道它的实际含义。 Is there a way to install wget from anaconda in windows 10?有没有办法在 windows 10 中从 anaconda 安装 wget? 在此处输入图像描述

在此处输入图像描述

Error when using conda install -c menpo wget使用 conda install -c menpo wget 时出错在此处输入图像描述

If you check the error message, you are getting connection timeout which is most probably related with your proxy configurations.如果您检查错误消息,您会收到连接超时,这很可能与您的代理配置有关。

Use this command to see proxy_servers使用这个命令查看proxy_servers

conda config --show

If any proxy server is present, you can remove it by如果存在任何代理服务器,您可以通过以下方式将其删除

conda config --remove-key proxy_servers. 

It will remove saved proxy servers from anaconda configuration.它将从 anaconda 配置中删除保存的代理服务器。 Then run,然后跑,

conda clean --source-cache

However if you are behind a company proxy, you have to set them correctly.但是,如果您使用公司代理,则必须正确设置它们。

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

尝试这个

conda install -c menpo wget

Although I've used wget a lot in the past (in PHP, back in the olden days), it seems to me that you would be much better off adapting your workflow to use requests instead, if it's at all possible.尽管我过去经常使用wget (在 PHP 中,回到过去),但在我看来,如果可能的话,您最好调整工作流程以使用requests

I wrestled with Anaconda for hours to try to get wget to install on a Win10 x64 version, and eventually I bit the bullet and refactored things to get rid of the dependency.我与 Anaconda 搏斗了几个小时,试图让wget安装在 Win10 x64 版本上,最终我咬紧牙关并重构了一些东西以摆脱依赖。

requests is no slower than wget , in my experience: I download very large GIS datafiles every month (totalling ~3.4GB) and the total download time is basically unchanged by the switch. requests并不比wget慢,根据我的经验:我每个月都会下载非常大的 GIS 数据文件(总共约 3.4GB),并且总下载时间基本不变。

I am using jupyter notebook and anaconda for management.我正在使用 jupyter notebook 和 anaconda 进行管理。 not same issue but was not able to install wget through anaconda (told the following packages is not available in the current channel) I have used pip to install it in my virtual environment.不是同样的问题,但无法通过 anaconda 安装 wget(告诉当前频道中没有以下软件包)我已经使用 pip 在我的虚拟环境中安装它。

pip install wget

Use利用

python -m pip install -U wget

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM