Conda - 离线安装/更新

2022-01-10 00:00:00 python conda anaconda

问题描述

我正在尝试离线更新 Anaconda/conda 中的 xlwings.

解决方案

首先下载相关的package-name.tar.bz2文件,(来自anaconda 存储库)

打开命令提示符,cd 到相应目录并输入

conda install package-name.tar.bz2

这应该可行.

I'm trying to offline update xlwings in Anaconda / conda.

From https://pypi.python.org/pypi/xlwings, I downloaded the most recent package, and put it into "C:Program FilesAnaconda2pkgs"

From Cmd, I've tried a number of different combinations, but I can't seem to get it to update the package... For example:

1) conda install xlwings --offline
2) conda install xlwings --offline xlwings-0.10.2.tar.gz
3) conda update xlwings --offline
4) conda update xlwings --offline xlwings-0.10.2.tar.gz

Attempts 2 & 4 (I've tried using the full directory for these as well) result in unrecognized command.

Attempts 1 & 3 results in:

解决方案

First download the rellevant package-name.tar.bz2 file, (from anaconda repository)

Open command prompt, cd to apropiate directory and type

conda install package-name.tar.bz2

This should work.

相关文章