我如何在 Anaconda Windows 10 中安装 wget?
How do i install wget in Anaconda Windows 10?
我尝试按照这个名为 https://github.com/conda-forge/python-wget-feedstock 的网站上的说明安装 wget。但是,我收到如下所示的错误消息,但我不知道它的实际含义。有没有办法在 windows 10 中从 anaconda 安装 wget?
使用conda install -c menpo wget时出错
试试这个
conda install -c menpo wget
如果您检查错误消息,您会遇到连接超时,这很可能与您的代理配置有关。
使用此命令查看proxy_servers
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
。
我与 Anaconda 搏斗了几个小时,试图让 wget
安装在 Win10 x64 版本上,最终我硬着头皮重构了一些东西以摆脱依赖。
requests
不比 wget
慢,根据我的经验:我每个月下载非常大的 GIS 数据文件(总计约 3.4GB)并且总下载时间基本上不会因切换而改变。
我正在使用 jupyter notebook 和 anaconda 进行管理。
不是同一个问题,但无法通过 anaconda 安装 wget(告知以下软件包在当前频道中不可用)
我已经使用 pip 在我的虚拟环境中安装了它。
pip install wget
我尝试按照这个名为 https://github.com/conda-forge/python-wget-feedstock 的网站上的说明安装 wget。但是,我收到如下所示的错误消息,但我不知道它的实际含义。有没有办法在 windows 10 中从 anaconda 安装 wget?
使用conda install -c menpo wget时出错
试试这个
conda install -c menpo wget
如果您检查错误消息,您会遇到连接超时,这很可能与您的代理配置有关。
使用此命令查看proxy_servers
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
。
我与 Anaconda 搏斗了几个小时,试图让 wget
安装在 Win10 x64 版本上,最终我硬着头皮重构了一些东西以摆脱依赖。
requests
不比 wget
慢,根据我的经验:我每个月下载非常大的 GIS 数据文件(总计约 3.4GB)并且总下载时间基本上不会因切换而改变。
我正在使用 jupyter notebook 和 anaconda 进行管理。 不是同一个问题,但无法通过 anaconda 安装 wget(告知以下软件包在当前频道中不可用) 我已经使用 pip 在我的虚拟环境中安装了它。
pip install wget