Reputation: 3529
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 Files\Anaconda2\pkgs"
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.
Upvotes: 21
Views: 128803
Reputation: 4415
If you want to update/install a conda package you'll need to download the corresponding conda package (you downloaded the pip package) into your pkgs
directory.
conda install xlwings --use-index-cache
Was working for me in the past. But the channel's index cache should have been updated at least once. It is possible that you still need the --offline
flag but I've never used it. But you have to check the dependencies of the packages to be installed by yourself which can be pretty time consuming as you have to download all other packages manually.
You can find the conda packages in the channel you are using (https://repo.continuum.io/pkgs/free/win-32/ in my case).
If you want to install a pip package offline just use
pip install package.tar.gz
pip
also comes with your anaconda distribution. If you are using conda environments, pip will be on the path of your current environment.
Upvotes: 6
Reputation: 1332
From my experience the process is:
tar.bz2
files form the ~/anaconda3/pkgs folder conda update name_of_packge.tar.bz2 --offline
. you may want to run conda index
on the pkgs
folder
update
Another option is to use conda pack. This allows to transfer entire environments from online to offline.
Upvotes: 10
Reputation: 2697
You should use a combination of both answers.
conda install opencv --use-index-cache
to let conda check for dependencies and compatibility issues.
But keep using conda (not pip) for the installation (if you don´t have serious reasons not to stay in the initial framework) [wasn´t the reason using conda as package manager because pip couldn't´t provide you those opportunities and flexibility?]
conda install opencv-3.3.0-py36_200.tar.bz2
Upvotes: 1
Reputation: 791
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.
Upvotes: 31